Skip to content

Commit 184e9a4

Browse files
dmsuehirSpycsh
andauthored
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>
1 parent 658867f commit 184e9a4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

AudioQnA/docker_compose/intel/cpu/xeon/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ curl http://${host_ip}:3002/v1/audio/speech \
127127

128128
## 🚀 Test MegaService
129129

130+
Test the AudioQnA megaservice by recording a .wav file, encoding the file into the base64 format, and then sending the
131+
base64 string to the megaservice endpoint. The megaservice will return a spoken response as a base64 string. To listen
132+
to the response, decode the base64 string and save it as a .wav file.
133+
130134
```bash
131135
curl http://${host_ip}:3008/v1/audioqna \
132136
-X POST \

AudioQnA/docker_compose/intel/hpu/gaudi/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export LLM_SERVICE_PORT=3007
7979

8080
## 🚀 Start the MegaService
8181

82+
> **_NOTE:_** Users will need at least three Gaudi cards for AudioQnA.
83+
8284
```bash
8385
cd GenAIExamples/AudioQnA/docker_compose/intel/hpu/gaudi/
8486
docker compose up -d
@@ -127,9 +129,13 @@ curl http://${host_ip}:3002/v1/audio/speech \
127129

128130
## 🚀 Test MegaService
129131

132+
Test the AudioQnA megaservice by recording a .wav file, encoding the file into the base64 format, and then sending the
133+
base64 string to the megaservice endpoint. The megaservice will return a spoken response as a base64 string. To listen
134+
to the response, decode the base64 string and save it as a .wav file.
135+
130136
```bash
131137
curl http://${host_ip}:3008/v1/audioqna \
132138
-X POST \
133139
-d '{"audio": "UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA", "max_tokens":64}' \
134-
-H 'Content-Type: application/json'
140+
-H 'Content-Type: application/json' | sed 's/^"//;s/"$//' | base64 -d > output.wav
135141
```

0 commit comments

Comments
 (0)