diff --git a/zh-cn/application-dev/reference/apis/js-apis-audio.md b/zh-cn/application-dev/reference/apis/js-apis-audio.md index 6ba108981cab16a6ac676ea4a25e905d4e86b099..cebbd3a3ca36210088c335342f50292b86acccf6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-audio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-audio.md @@ -13,7 +13,7 @@ ## 导入模块 -``` +```js import audio from '@ohos.multimedia.audio'; ``` @@ -32,7 +32,8 @@ getAudioManager(): AudioManager | [AudioManager](#audiomanager) | 音频管理类。 | **示例:** -``` + +```js var audioManager = audio.getAudioManager(); ``` @@ -50,7 +51,8 @@ getStreamManager(): AudioStreamManager | [AudioStreamManager](#audiostreammanager9) | 返回音频流管理器实例。 | **示例:** -``` + +```js var audioStreamManager = audio.getStreamManager(); ``` @@ -71,7 +73,7 @@ createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback\ **示例:** -``` +```js import audio from '@ohos.multimedia.audio'; var audioStreamInfo = { @@ -170,7 +172,7 @@ createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback