语音转文本,语音转文本,IOS上的音频-如何使其工作

问题描述 投票:0回答:1

[我正在使用Speech.js-语音识别-p5js声音库-和多种音频创建一个node.js Web应用程序:IOS移动的噩梦。我确实在单击按钮后播放音频,这是专为Chrome制作的,但是音频仍然无法在移动设备或Ipad上使用。

我过去几年一直在询问有关此问题的另一个问题,但到目前为止,它们似乎有些过时了,没有任何实际效果。有什么窍门吗?

这是我的音频播放方式:

var buttonStart = document.getElementById("start");
buttonStart.onclick = function(){ 

var speechRec = new p5.SpeechRec('en-US', gotSpeech); // new P5.SpeechRec object
let continuous = false;

let interim = false;
speechRec.onEnd = restart;
speechRec.start(continuous, interim);
getAudioContext().resume();

function restart() {
  speechRec.start();
};

function init() {
  speech.speak("hello");
}

}
    

[我正在使用Speech.js-语音识别-p5js声音库-和多种音频创建一个node.js Web应用程序:IOS移动的噩梦。单击按钮后,我确实在播放音频...

javascript ios audio p5.js
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.