I want to know how to use speech recognition or any other component to make it auto detect the language and convert it into text.
please help its urgent !
Anyone please help regarding this.
Hi
My question is if we use this code then it will only detect system language what if we want other languages also which are automatically detected?
the Speech Recognizer already uses the phone’s language by default and I think it wants to recognize what language it is regardless of the phone’s language.
Yes, @RaYzZz i am asking for the feature to detect automatically any language not just system language
Let’s see if this can go well, I rely on an API that derives the language from a text.
Below are the necessary blocks,
Response example
API Documentation
With a free plan
@RaYzZz Sir you are first getting tet from speech recognizer which will only get the text in the system language isn’t it? I asked for the feature that it should automatically detect the language we are speaking and then give us text output , what the code is doing is (i think so, I maybe wrong also) first getting the speech’s output text in system language(as you set no language) then sending it to api. So according to me this code is basically detecting system language not the language we are speaking isnt it?
btw thanks for your detailed and timely reply
Excellent observation,
But it’s my fault for not specifying an important thing ,
I tested on my phone that as speech recognizer it uses Google Assistant which is able to detect the language automatically and that the API was useful in case I wanted to know what language it was.
I haven’t tried on non-Google devices.
But on fairly recent devices it seems that they are all able to write the text they have heard.
so I also had to ask you if you had tried speaking in other languages to the SpeecRecognizer.