Wrapper of native C++ whisper parameters. Use it to safely change inference parameters.
More...
|
| WhisperNativeParams | NativeParams [get] |
| | Native C++ struct parameters. Do not change it in runtime directly, use setters.
|
| |
| WhisperSamplingStrategy | Strategy [get, set] |
| | Sampling Whisper strategy (greedy or beam search).
|
| |
| int | ThreadsCount [get, set] |
| | Count of threads (n_threads), should be >= 1.
|
| |
| int | MaxTextContextCount [get, set] |
| | Max tokens to use from past text as prompt for the decoder.
|
| |
| int | OffsetMs [get, set] |
| | Start audio offset in ms.
|
| |
| int | DurationMs [get, set] |
| | Audio duration to process in ms.
|
| |
| bool | Translate [get, set] |
| | Translate from source language to English.
|
| |
| bool | NoContext [get, set] |
| | Do not use past transcription (if any) as initial prompt for the decoder.
|
| |
| bool | SingleSegment [get, set] |
| | Force single segment output (useful for streaming).
|
| |
| bool | PrintSpecial [get, set] |
| | Print special tokens (e.g. SOT, EOT, BEG, etc.)
|
| |
| bool | PrintProgress [get, set] |
| | Print progress information in C++ log. It won't be shown in Unity console, but visible in Unity log file. Log file location.
|
| |
| bool | PrintRealtime [get, set] |
| | Print results from within whisper.cpp in C++ log (avoid it, use callback instead). It won't be shown in Unity console, but visible in Unity log file. Log file location.
|
| |
| bool | PrintTimestamps [get, set] |
| | Print timestamps for each text segment when printing realtime in C++ log. It won't be shown in Unity console, but visible in Unity log file. Log file location.
|
| |
| string | Language [get, set] |
| | Output text language code (ISO 639-1). For example "en", "es" or "de". For auto-detection, set to null, "" or "auto".
|
| |
| string | InitialPrompt [get, set] |
| | initial prompt is converted to tokens and prepended to any existing text context from a previous call Using example
|
| |
| bool | TokenTimestamps [get, set] |
| | [EXPERIMENTAL] Try to estimate timestamps for each token in segment.
|
| |
| bool | SpeedUp [get, set] |
| | [EXPERIMENTAL] Speed-up the audio by 2x using Phase Vocoder. These can significantly reduce the quality of the output.
|
| |
| int | AudioCtx [get, set] |
| | [EXPERIMENTAL] Overwrite the audio context size (0 = use default). These can significantly reduce the quality of the output.
|
| |
| whisper_new_segment_callback | NewSegmentCallback [get, set] |
| | Called for every newly generated text segment. Because of IL2CPP, this should be a static function. WhisperWrapper and WhisperManager will use it to raise their custom event.
|
| |
| IntPtr | NewSegmentCallbackUserData [get, set] |
| | Pointer to data that you want to pass as a parameter for NewSegmentCallback. It will be relayed from whisper code without any changes.
|
| |
| whisper_progress_callback | ProgressCallback [get, set] |
| | Called on each progress update. Because of IL2CPP, this should be a static function. WhisperWrapper and WhisperManager will use it to raise their custom event.
|
| |
| IntPtr | ProgressCallbackUserData [get, set] |
| | Pointer to data that you want to pass as a parameter for ProgressCallback. It will be relayed from whisper code without any changes.
|
| |
| bool | EnableTokens [get, set] |
| | Output in WhisperSegment list of tokens.
|
| |
Wrapper of native C++ whisper parameters. Use it to safely change inference parameters.