Speech-to-text and audio injection
Use speech-to-text with audio injection in Vivox.
Read time 1 minuteLast updated 2 days ago
You can have speech-to-text transcribe injected audio by using the following API methods.
IVivoxService.StartAudioInjection
Use 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:
IVivoxService.StartAudioInjectionaudioFilePathIVivoxService.StopAudioInjection
IVivoxService.StopAudioInjectionUse this method to stop audio injection inside a channel.VivoxService.Instance.StartAudioInjection(path);await Task.Delay(10000);VivoxService.Instance.StopAudioInjection();await Task.Delay(10000);
IVivoxService.IsInjectingAudio
IVivoxService.IsInjectingAudioUse this getter to check whether audio is being injected.VivoxService.Instance.IsInjectingAudio