firmware icon indicating copy to clipboard operation
firmware copied to clipboard

About pushing audio streams in OpenIPC for two-way voice interaction functionality

Open dahai20 opened this issue 11 months ago • 6 comments

Hello,

I am trying to implement two-way voice interaction in OpenIPC, where part of the functionality is to push audio streams from an external source to the camera. Specifically, I want to push audio to enable two-way voice interaction, but I am unsure if a certain version of OpenIPC already supports this feature or if OpenIPC is capable of receiving pushed audio streams.

Additionally, while reviewing the documentation, I found that Majestic Streamer supports audio playback. I followed the instructions in the Majestic Streamer documentation but was unsuccessful. Specifically, I am using an AAC file and modified the audio-related settings in the configuration file as shown below: audio: enabled: true volume: 30 srate: 8000 codec: aac outputEnabled: true outputVolume: 80 speakerPinInvert: false

However, the audio playback did not work as expected. Could you please provide any guidance or suggestions, especially on how to successfully play audio in OpenIPC or how to implement two-way voice communication by pushing audio streams?

Thank you very much for your help!

dahai20 avatar Mar 10 '25 03:03 dahai20

Image

dahai20 avatar Mar 10 '25 03:03 dahai20

The command I used to play the local AAC file is: curl -u root:12345 --data-binary @/Users/mac32/20250307_180527.aac http://192.168.31.12/play_audio

dahai20 avatar Mar 10 '25 03:03 dahai20

curl -u root:12345 --data-binary @test.pcm http://192.168.31.12/play_audio

audio config : audio: enabled: true volume: 30 srate: 8000 codec: opus outputEnabled: true outputVolume: 90

it's working , oh yes ,

dahai20 avatar Mar 10 '25 12:03 dahai20

However, I still haven’t found a method to capture and push audio simultaneously

dahai20 avatar Mar 10 '25 12:03 dahai20

I tried to push an Opus format file to OpenIPC using the command: curl -u root:12345 --data-binary @output.opus http://192.168.31.12/play_audio but it doesn’t play correctly and only produces noise.

dahai20 avatar Mar 10 '25 16:03 dahai20

Trying to figure this out as well using blue iris.

cwtufts avatar Mar 19 '25 17:03 cwtufts