Is there a way to record sound from a Windows Phone microphone while speech recognition is still on?
When I try to do this, the speech recognition request blocks the application, and therefore, the recorder never starts while recognition is in progress.
var speechRecognizer = new SpeechRecognizer();
function startMediaCaptureSession() {
Windows.Storage.ApplicationData.current.localFolder.createFileAsync("audio.mp3", Windows.Storage.CreationCollisionOption.generateUniqueName).then(function (newFile) {
oMediaCapture.startRecordToStorageFileAsync(profile,newFile).then(function (result) {
speechRecognizer.recognizeAsync();
}, errorHandler);
} );
}
Is there any way to do this?
source
share