6

我想开发一个安卓应用。

该应用程序的一项功能是识别 2 个人的声音。

它会是这样 - 当应用程序打开时,有 2 个人会在它前面说话。应用程序将检测 2 人说话,并计算 A 人和 B 人说话的百分比(假设 2 人是 A 和 B)。

因此,假设 1 分钟后,应用程序会告诉 A 说 80%,B 说 20%。

所以,我需要的是如何区分两个人的声音。

我已经尝试过SpeechRecognizerandroid.speech.tts。但我不能让它工作。

在android中可以区分2个人的声音吗?

提前感谢您的帮助。

4

1 回答 1

4

SpeechRecognizer or TTS will not help you as they have designed to recognize speech. You have to use DSP technology, in order to recognize the speaker. Due to the complexity, i don't think you can achieve this within the device itself. You can save your audio (using something like AudioRecord in Android) and then send it to a server. in the server side you can run a speaker recognition program. ALIZE is a quite popular open source tool for this.

于 2014-12-19T08:53:49.900 回答