artiso-solutions / CoVoX

MIT License
1 stars 1 forks source link

Support provision of audio source #67

Open tommasobertoni opened 3 years ago

tommasobertoni commented 3 years ago

The consumer of covox may provide an audio source for the recognition, instead of letting the engine listen directly to the microphone:

var covox = new CovoxEngine(new Configuration
{
    // ...
    AudioSource = Audio.FromDefaultMicrophone() // When AudioSource is null, this option is auto-selected
               // Audio.FromMicrophone(microphoneId)
               // Audio.FromStream(myCustomStream)
};