Given an audio track, I'm trying to find a way to recognize the audio language. Only within a small set (e.g. English vs Spanish). Is there a simple solution to detect the language in a speech?
-
$\begingroup$ If you are finding a tool, this question maybe off topic. @nbro $\endgroup$– Clement HuiJan 4, 2020 at 11:54
-
$\begingroup$ No tool. A simple solution. $\endgroup$– Tina JJan 4, 2020 at 17:06
1 Answer
Google has an API you can use. https://cloud.google.com/translate/. Their API can translate audio to text. They also have an API for converting speech to text. The language detection feature should let you detect the language in the resulting text. They have client libraries for the most popular programming languages.
-
$\begingroup$ Yeah that I know. But then the problem of language detection still remains. $\endgroup$– Tina JJan 2, 2020 at 23:24
-
1$\begingroup$ Google translate can detect the langauge for you as well $\endgroup$– jgleoj23Jan 2, 2020 at 23:28
-
1$\begingroup$ You can see a python example of this at pypi.org/project/googletrans $\endgroup$– jgleoj23Jan 2, 2020 at 23:28
-