Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使用蓝牙设备播放网络音频_Android_Html_Browser_Bluetooth_Web Audio Api - Fatal编程技术网

Android 如何使用蓝牙设备播放网络音频

Android 如何使用蓝牙设备播放网络音频,android,html,browser,bluetooth,web-audio-api,Android,Html,Browser,Bluetooth,Web Audio Api,我编写了一个网站,它使用文本到语音引擎生成音频文件 然后使用Web音频API启动这些mp3文件 当在电脑或智能手机上听到来自扬声器的aufio时,一切正常 但是,只要我将蓝牙头盔连接到智能手机,音频就不会播放 Web音频API不适用于蓝牙设备是一个著名的问题,还是我的代码导致了这个问题 我需要更改上下文的目标吗?如何将其设置为buetooth?(例:) 这个问题已经发布在stackoverflow上,但我找不到答案 请帮助我。您好,请使用web蓝牙库获取更多参考阅读此谢谢您的帮助。 source

我编写了一个网站,它使用文本到语音引擎生成音频文件

然后使用Web音频API启动这些mp3文件

当在电脑或智能手机上听到来自扬声器的aufio时,一切正常

但是,只要我将蓝牙头盔连接到智能手机,音频就不会播放

Web音频API不适用于蓝牙设备是一个著名的问题,还是我的代码导致了这个问题

我需要更改上下文的目标吗?如何将其设置为buetooth?(例:)

这个问题已经发布在stackoverflow上,但我找不到答案


请帮助我。

您好,请使用web蓝牙库获取更多参考阅读此

谢谢您的帮助。
source.connect(context.destination); // connect the source to the context's destination (the speakers)