Append play_audio endpoint manual

pull/81/head
Chuvi 2023-03-28 21:17:07 +03:00 committed by GitHub
parent d4da270215
commit 7a1f6af186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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