Streaming of Pulse-code modulation (PCM) audio from OpenHarmony
The OpenHarmony implementation of the audio_streamer
audio_streamer 在 OpenHarmony 平台上的实现
dependencies:
audio_streamer: 4.1.1
audio_streamer_ohos: 0.0.2
refer to audio_streamer for more details
更多细节请参考 audio_streamer
Add ohos.permission.MICROPHONE
to your OpenHarmony project's module.json
file.
在 OpenHarmony 项目的 module.json
文件中添加 ohos.permission.MICROPHONE
权限
{
"module": {
"requestPermissions": [
{
"name": "ohos.permission.MICROPHONE",
"reason": "Microphone permission is required to record audio."
}
]
}
}