capacitor-community / capacitor-community/speech-recognition
Missing punctuation option
- Dominant language
- Java
- Stars
- 130
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
Currently the speech recognition won't add punctuation to the text, which is something important depending on the use case.
**Describe the solution you'd like**
IOS has a [new property](https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest/3930023-addspunctuation?changes=_9) to set punctuation starting on IOS 16. I didn't test android but I believe it will have the same problem because [EXTRA_ENABLE_FORMATTING](https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_ENABLE_FORMATTING) is not implemented.
**Describe alternatives you've considered**
n/a
**Additional context**
I have implemented addsPunctuation to IOS locally and it seems to work. Will create a PR to send the needed changes.
Contributor guide
Research direction
Start with the iOS SFSpeechRecognitionRequest addPunctuation property and the Android EXTRA_ENABLE_FORMATTING API named in the issue. Verify how speech recognition requests are built for each platform; done means recognized text can include punctuation on the supported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100