@sanjay.bisht For Jcontinuous language detection the property SpeechServiceConnection_LanguageIdMode should be set to Continuous.
As per documentation:
The
SpeechServiceConnection_LanguageIdMode
property is only required for continuous LID. Without it, the Speech service defaults to at-start LID. The supported values areAtStart
for at-start LID orContinuous
for continuous LID.
Also, for Speech to text or translation you must create a SpeechConfig from the wss://{region}.stt.speech.microsoft.com/speech/universal/v2
endpoint string i.e use fromEndpoint() method and then use setProperty() method to get the property SpeechServiceConnection_LanguageIdMode
Also, the limitations are Continuous LID doesn't support changing languages within the same sentence. For example, if you're primarily speaking Spanish and insert some English words, it doesn't detect the language change per word and Continuous LID is only supported with continuous recognition.
Try setting the above and check if it works, if you are seeing recognition only at start then it is probably using the default property value of AtStart for SpeechServiceConnection_LanguageIdMode,
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.