I am making a speech to text ASP.NET Core Web application that recognises Quranic/Classic Arabic using WebkitSpeechRecognition
For example: When I speak the word(i know how it is spoken) shown in the picture, I should get not
. At the moment only modern arabic is showing
So far, I have tried:
- All the Arabic accents here
- Had a look at Iqra and their approach(text to speech)is opposite to mine(speech to text)
Speech Recognition code:
function startConverting() {
var finalTranscripts = '';
var finalEnglish = '';
//check if speech recogntion is supported by browser
if ('webkitSpeechRecognition' in window) {
var speechRecognizer = new webkitSpeechRecognition();
speechRecognizer.continuous = true;
speechRecognizer.interimResults = true;
speechRecognizer.lang = 'ar-AE';
speechRecognizer.start();
speechRecognizer.onresult = function (event) {
// debugger;
var interimTranscripts = '';
for (var i = event.resultIndex; i < event.results.length; i++) {
var transcript = event.results[i][0].transcript;
if (event.results[i].isFinal) {
finalTranscripts += transcript;
} else {
interimTranscripts += transcript;
}
}
var test = finalTranscripts ? '' : interimTranscripts;
Is what I am trying to achieve even achievable. If yes, any pointers will be much appreciated. Thanks in advance.