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?
Asked
Active
Viewed 494 times
2
-
If you are finding a tool, this question maybe off topic. @nbro – Clement Jan 04 '20 at 11:54
-
No tool. A simple solution. – Tina J Jan 04 '20 at 17:06
1 Answers
1
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.

jgleoj23
- 182
- 2
-
Yeah that I know. But then the problem of language detection still remains. – Tina J Jan 02 '20 at 23:24
-
1
-
1You can see a python example of this at https://pypi.org/project/googletrans/ – jgleoj23 Jan 02 '20 at 23:28
-