问题描述
根据 Al-Quran
,我们如何比较两个音频文件或录音机文件.
与阿拉伯语
发音相比, Al-Quran
具有特殊的发音.
可以在用户语音和 Al-Quran
的发音方式之间进行比较吗?
How can we compare two audio files, or voice recorder files, according to Al-Quran
.Al-Quran
has special pronunciation compared to Arabic
pronunciation.
Is it possible to do the comparison between user voice and the way Al-Quran
is pronounced?
我已经尝试过 Google Speech to Text for Arabic
,但看来它不能处理 Al-Quran
的发音.
I have already tried the Google Speech to Text for Arabic
, but it seems it does not handle the pronunciation for Al-Quran
.
例如,此音频(古兰经的背诵)
For example this audio (Al-Quran's recite)
推荐答案
比较两个音频文件非常简单,但是如果您要分析古兰经》的 Thajweed
(正确发音)根据阿拉伯文法的合法方式,您必须使用某种机器学习技术,例如音频分类.
Comparing two audio files is that much easy, but if you want to analyse the Thajweed
(Proper Pronunciation) of Quran according to the legal way of Arabic grammar, you have to use some kind of machine learning techniques such as Audio Classifications.
要使用ML,您需要获取1000多种具有适当发音的古兰经经文录音样本音色,以比较当前声音并检测 Thajweed
错误,如果您可以构建,我很高兴AI可以检测到它,但是它需要的时间和资源比您预期的要多.
In order to use ML you need to get more than 1000 sample voices of Quran verses recordings with proper pronunciation to compare the current voice and detect the Thajweed
mistakes, I'm happy if you could build an AI to detect that, but it requires more time and resources than you expect.
简单:有一个名为 musicg
的Android库,您可以使用它来比较两个音频文件并获得它们之间的相似度百分比.(根据您的情况,它可能会或可能不会提供100%的准确性)
In simple: There is an Android library called musicg
which you can use to compare two audio files and get the similarity percentage between them. (It may or may not give 100% accuracy in your case)
Wave wave = new Wave(getAssets().open("quran_verse_25.wav"));
Wave wave1 = new Wave(getAssets().open("test_audio.wav"));
FingerprintSimilarity fingerprintSimilarity = wave.getFingerprintSimilarity(wave1);
float score = fingerprintSimilarity.getScore();
float similarity = fingerprintSimilarity.getSimilarity();
Log.d("Similarsound", "Time Match: " + fingerprintSimilarity.getsetMostSimilarTimePosition() + " Score : " + score + " Similarity : " + similarity);
可以通过 URL 下载该库.
这篇关于alQuran阿拉伯语的语音识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!