HarmonyCandies / audio_streamer_ohos

Streaming of Pulse-code modulation (PCM) audio from OpenHarmony with a customizable sampling rate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

audio_streamer_ohos

pub package GitHub stars GitHub forks GitHub license GitHub issues harmony-candies

Streaming of Pulse-code modulation (PCM) audio from OpenHarmony

The OpenHarmony implementation of the audio_streamer

audio_streamer 在 OpenHarmony 平台上的实现

Usage (使用方法)

dependencies:
  audio_streamer: 4.1.1
  audio_streamer_ohos: 0.0.2

refer to audio_streamer for more details

更多细节请参考 audio_streamer

Permissions (权限)

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."
      }
    ]
  }
}

About

Streaming of Pulse-code modulation (PCM) audio from OpenHarmony with a customizable sampling rate.

License:MIT License


Languages

Language:TypeScript 39.9%Language:Dart 28.7%Language:Shell 17.9%Language:Batchfile 13.5%