Speech-to-text and audio injection
Use speech-to-text with audio injection in Vivox.
Read time 1 minuteLast updated 7 months ago
You can have speech-to-text transcribe injected audio by using the following API methods.
IVivoxService.StartAudioInjection
IVivoxService.StartAudioInjectionUse this method to start audio injection inside a channel. Injected audio is played only into the channels you're transmitting into. This method takes the following parameter:
audioFilePathIVivoxService.StopAudioInjection
IVivoxService.StopAudioInjectionVivoxService.Instance.StartAudioInjection(path);await Task.Delay(10000);VivoxService.Instance.StopAudioInjection();await Task.Delay(10000);
Use this method to stop audio injection inside a channel.
IVivoxService.IsInjectingAudio
IVivoxService.IsInjectingAudioVivoxService.Instance.IsInjectingAudio
Use this getter to check whether audio is being injected.