A community member has associated this post with a similar question:
Can you add a phrase list to the CallMediaRecognizeSpeechOptions class when using speech-to- text cognitive services from azure communications service
Only moderators can edit this content.
Adding a phrase list to the speech recognition request in azure communication services
Is it possible to add a phrase list to the speech recognition request using the ACS call automation sdk?
I have about 20 place names that I would like to add as phrases to the recognition process but I cannot find a way to do it via the call-automation java sdk?
This call is the only access point to the speech recognition environment via ACS
CallMediaRecognizeSpeechOptions options =
new
CallMediaRecognizeSpeechOptions(iJourney.getTarget(), Duration.
ofSeconds
(2))
.setInterruptPrompt(
false
).setPlayPrompt(iPrompt).setSpeechLanguage(iLanguage).setOperationContext(iContext)
.setRecognizeInputType(RecognizeInputType.
SPEECH
).setInitialSilenceTimeout(Duration.
ofSeconds
(10));
However I don't see any option to add a phrase list. Is this possible or planned ?
Is my only option to build a custom model using "Text based data" to add the place names and then set the setSpeechRecognitionModelEndpointId()