💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 只采集音频 创建存放音频的标签 ``` <div> <audio autoplay controls id="audioplayer"></audio> </div> ``` 获取音频的标签 ``` var audioplayer = document.querySelector('audio#audioplayer'); ``` 在gotMediaStream函数中添加音频流: ``` function gotMediaStream(stream) { audioplayer.srcObject = stream; return navigator.mediaDevices.enumerateDevices(); } ```