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 Hui Jan 4 at 11:54
  • $\begingroup$ No tool. A simple solution. $\endgroup$ – Tina J Jan 4 at 17:06

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.

| improve this answer | |
  • $\begingroup$ Yeah that I know. But then the problem of language detection still remains. $\endgroup$ – Tina J Jan 2 at 23:24
  • 1
    $\begingroup$ Google translate can detect the langauge for you as well $\endgroup$ – jgleoj23 Jan 2 at 23:28
  • 1
    $\begingroup$ You can see a python example of this at pypi.org/project/googletrans $\endgroup$ – jgleoj23 Jan 2 at 23:28
  • $\begingroup$ Umm good. But something possibly non cloud. $\endgroup$ – Tina J Jan 3 at 3:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.