Ailia Speech
Speech recognition for audio waveforms.
This class provides speech to text conversion (Whisper and SenseVoice), voice activity detection, speaker diarization and post processing such as translation via the ailia Speech native library.
Feed the audio waveform with pushInputData, notify the end of the input with finalizeInputData, then call transcribe while getBuffered returns 1 and get the results with getText. getComplete returns 1 when all of the input has been processed.
Parameters
Environment id of the ailia execution. -1 (ENVIRONMENT_ID_AUTO) selects the environment automatically.
Number of threads. 0 (MULTITHREAD_AUTO) means the system's logical processor count.
Memory management mode of the ailia execution. The default value 11 reduces the memory consumption.
Task of the recognition, one of the AILIA_SPEECH_TASK_* constants.
Flags of the recognition, one of the AILIA_SPEECH_FLAG_* constants.
Constructors
Functions
Notifies the end of the audio input.
Determines if enough audio data has been fed to perform the transcription.
Determines if all of the audio data has been processed.
Returns the details of the last error.
Returns the recognized text fragment.
Returns the number of the recognized text fragments.
Opens the speaker diarization model files.
Opens a dictionary file for correcting the recognition results.
Performs the post process (error correction or translation) of the recognition results.
Pushes the audio waveform to the queue.
Resets the transcribe state to process a new audio input.
Sets the constraint of the recognition output.
Sets the callback for receiving intermediate recognition results.
Sets the language of the speech recognition.
Sets the silent threshold of the voice activity detection.
Performs the speech recognition of the buffered audio data.