Update AudioQnA README to add a couple usage details (#948)
Signed-off-by: Dina Suehiro Jones <dina.s.jones@intel.com> Co-authored-by: Sihan Chen <39623753+Spycsh@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
658867fce4
commit
184e9a43b8
@@ -127,6 +127,10 @@ curl http://${host_ip}:3002/v1/audio/speech \
|
|||||||
|
|
||||||
## 🚀 Test MegaService
|
## 🚀 Test MegaService
|
||||||
|
|
||||||
|
Test the AudioQnA megaservice by recording a .wav file, encoding the file into the base64 format, and then sending the
|
||||||
|
base64 string to the megaservice endpoint. The megaservice will return a spoken response as a base64 string. To listen
|
||||||
|
to the response, decode the base64 string and save it as a .wav file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl http://${host_ip}:3008/v1/audioqna \
|
curl http://${host_ip}:3008/v1/audioqna \
|
||||||
-X POST \
|
-X POST \
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ export LLM_SERVICE_PORT=3007
|
|||||||
|
|
||||||
## 🚀 Start the MegaService
|
## 🚀 Start the MegaService
|
||||||
|
|
||||||
|
> **_NOTE:_** Users will need at least three Gaudi cards for AudioQnA.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd GenAIExamples/AudioQnA/docker_compose/intel/hpu/gaudi/
|
cd GenAIExamples/AudioQnA/docker_compose/intel/hpu/gaudi/
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
@@ -127,9 +129,13 @@ curl http://${host_ip}:3002/v1/audio/speech \
|
|||||||
|
|
||||||
## 🚀 Test MegaService
|
## 🚀 Test MegaService
|
||||||
|
|
||||||
|
Test the AudioQnA megaservice by recording a .wav file, encoding the file into the base64 format, and then sending the
|
||||||
|
base64 string to the megaservice endpoint. The megaservice will return a spoken response as a base64 string. To listen
|
||||||
|
to the response, decode the base64 string and save it as a .wav file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl http://${host_ip}:3008/v1/audioqna \
|
curl http://${host_ip}:3008/v1/audioqna \
|
||||||
-X POST \
|
-X POST \
|
||||||
-d '{"audio": "UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA", "max_tokens":64}' \
|
-d '{"audio": "UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA", "max_tokens":64}' \
|
||||||
-H 'Content-Type: application/json'
|
-H 'Content-Type: application/json' | sed 's/^"//;s/"$//' | base64 -d > output.wav
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user