Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Speech recognition doesn't work on iOS 13.3 #111

Open
seemaks opened this issue Apr 22, 2020 · 1 comment
Open

Speech recognition doesn't work on iOS 13.3 #111

seemaks opened this issue Apr 22, 2020 · 1 comment

Comments

@seemaks
Copy link

seemaks commented Apr 22, 2020

Hi,
I have created an ionic app which uses this cordova-plugin-recognition for converting speech to text.
It works well on android.
But when I create an ipa file and uploaded it to testflight to be tested via apple store, the testers are not able to record their voice.
It does nothing on trying to record speech nor throws any error.
The code which I used is as follows:
initSpeech() {
this.speechRecognition.hasPermission()
.then((hasPermission: boolean) => {
console.log(hasPermission)
if (!hasPermission) {
this.speechRecognition.requestPermission()
.then(
() => console.log('granted'),
() => console.log('Denied')
)
}
})
}

start() {
// Start the recognition process
this.speechRecognition.startListening()
.subscribe(
(matches: Array) => { this.voicetext = matches[0]; this.mainForm.controls['comments'].setValue(matches[0]); },
(onerror) => console.log('error:', onerror)
)
}

//stop listening for(ios only)
stop() {
this.speechRecognition.stopListening();

}
Please help me with this

@seemaks
Copy link
Author

seemaks commented Apr 30, 2020

folks… could anyone could help me in right direction.

Thanks,
Seema Sharma

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant