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:
Dina Suehiro Jones
2024-10-20 19:22:22 -07:00
committed by GitHub
parent 658867fce4
commit 184e9a43b8
2 changed files with 11 additions and 1 deletions

View File

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

View File

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