Skip to content
Update User Terminal authored by Jan Janak's avatar Jan Janak
......@@ -250,7 +250,7 @@ To start streaming, send a HTTP GET to the API endpoint. The terminal will respo
* **format** - Sample format. One of u8, u-law, A-law, S16LE, S16BE, Float32LE, Float32BE, S32LE, S32BE, S24LE, S24BE, S24_32LE, S24_32BE. The default value is S16LE. Only u8 and S16LE can be used with stream type 'audio/wav'.
* **fragmentSize** - This parameter can be used to control the size of the data fragment, i.e., how often the audio subsystem wakes up the application. The value indirectly controls latency. Please note that the value is advisory only. The actual fragment size will be determined based on a variety of factors and can differ significantly (in both directions) from the value specified by the client.
The following command streams speaker audio from the terminal with sample rate 8000 Hz, 16-bits per sample (little endian), and fragment size 16000 (1 second):
The following command streams speaker audio from the terminal with sample rate 8000 Hz, 16-bits per sample (little endian). The client requests data chunk once every second (16000 bytes, 2 bytes per sample):
```sh
curl -o speaker.wav http://<hostname>:<port>/audio/speaker?rate=8000&format=S16LE&fragmentSize=16000
```