TRVAudioPlayer.Recording

<< Click to display table of contents >>

TRVAudioPlayer.Recording

Turn on/off sound recording to a file and/or speech recognition.

property Recording: Boolean;

Assign True to this property to start recording and/or speech recognition, assign False to stop recording and speech recognition.

This property is independent of Active. The component can be inactive (does not play sound on any output device) but still record sound.

When recording is finished, OnStopRecording occurs.

In the current version, FFmpeg is required for sound recording. Speech recognition requires FFmpeg 8+ with integrated Whisper model, and a model file specified in SpeechToTextProperty.ModelFileName.

Recording is performed if OutputFileName is not empty. It uses sound parameters specified in Encode* properties.

Speech recognition is performed if SpeechToTextProperty.Active = True.

Default value:

False

See also

UseFFMpeg