提交 cbcdf70a 编写于 作者: J jiao_yanlin

Intelligent voice wake-up and submission of relevant materials of TonePlayer

Signed-off-by: Njiao_yanlin <jiaoyanlin@huawei.com>
上级 390296d6
......@@ -258,7 +258,7 @@ audio.createAudioCapturer(audioCapturerOptions).then((data) => {
createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback&lt;TonePlayer&gt;): void
获取音频渲染器。使用callback方式异步返回结果。
创建DTMF播放器。使用callback方式异步返回结果。
**系统能力:** SystemCapability.Multimedia.Audio.Tone
......@@ -275,9 +275,9 @@ createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback&lt;TonePlay
import audio from '@ohos.multimedia.audio';
var audioRendererInfo = {
"contentType": audio.ContentType.CONTENT_TYPE_MUSIC,
"streamUsage": audio.StreamUsage.STREAM_USAGE_MEDIA,
"rendererFlags": 0
"contentType": audio.ContentType.CONTENT_TYPE_MUSIC,
"streamUsage": audio.StreamUsage.STREAM_USAGE_MEDIA,
"rendererFlags": 0
}
var tonePlayer;
......@@ -296,7 +296,7 @@ audio.createTonePlayer(audioRendererInfo, (err, data) => {
createTonePlayer(options: AudioRendererInfo): Promise&lt;TonePlayer&gt;
获取音频渲染器。使用Promise方式异步返回结果。
创建DTMF播放器。使用Promise方式异步返回结果。
**系统能力:** SystemCapability.Multimedia.Audio.Tone
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册