|Top Previous Next|
TCustomRVMicrophone reads sound from a microphone (or other audio capture device) or a WAV file.
TCustomRVMicrophone = class(TRVAudioSource)
Objects of this class are not used directly. TRVMicrophone components are used instead.
Choosing a microphone (or other audio input device)
By default, the component reads sound from the default audio input device. You can choose another device.
Sound from microphone
If Active=True, the component reads sound from a microphone.
The following properties allow changing the system properties of the microphone (affect all applications): Volume.
Mute turns off reading from the microphone.
The following properties allow to cut off non-informative sound: SoundMinLevel, SoundIgnoreInterval. The chart below shows how they work. The yellow curve shows an absolute value of a sound amplitude changing over time. The component ignores sound if: (1) it lies below SoundMinLevel, (2) it lies inside the interval defined by SoundIgnoreInterval.
Sound quality is specified in BitsPerSample and SamplesPerSec properties
Sound from WAV-files
To apply modification properties to sound read from a file, assign WAVUseOptions=True.
While processing a file, OnOpenWavFile, OnReadWavFile, OnCloseWavFile events occur.