mirror of https://github.com/OpenIPC/wiki.git
Append play_audio endpoint manual
parent
d4da270215
commit
7a1f6af186
|
@ -46,6 +46,13 @@ Using [sox][sox] program convert any source audio file to [PCM][pcm] 8kbps audio
|
|||
sox speech.mp3 -t raw -r 8000 -e signed -b 16 -c 1 test.pcm
|
||||
```
|
||||
|
||||
### How to play audio file on camera's speaker over network
|
||||
|
||||
```
|
||||
cat test.pcm | curl -v -u user:password -H "Content-Type: application/json" -X POST --data-binary @- http://192.168.1.10/play_audio
|
||||
```
|
||||
|
||||
|
||||
[aac]: https://en.wikipedia.org/wiki/Advanced_Audio_Coding
|
||||
[alaw]: https://en.wikipedia.org/wiki/A-law_algorithm
|
||||
[dng]: https://en.wikipedia.org/wiki/Digital_Negative
|
||||
|
|
Loading…
Reference in New Issue