File tree 2 files changed +11
-1
lines changed
AudioQnA/docker_compose/intel
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,10 @@ curl http://${host_ip}:3002/v1/audio/speech \
127
127
128
128
## 🚀 Test MegaService
129
129
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
+
130
134
``` bash
131
135
curl http://${host_ip} :3008/v1/audioqna \
132
136
-X POST \
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ export LLM_SERVICE_PORT=3007
79
79
80
80
## 🚀 Start the MegaService
81
81
82
+ > ** _ NOTE:_ ** Users will need at least three Gaudi cards for AudioQnA.
83
+
82
84
``` bash
83
85
cd GenAIExamples/AudioQnA/docker_compose/intel/hpu/gaudi/
84
86
docker compose up -d
@@ -127,9 +129,13 @@ curl http://${host_ip}:3002/v1/audio/speech \
127
129
128
130
## 🚀 Test MegaService
129
131
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
+
130
136
``` bash
131
137
curl http://${host_ip} :3008/v1/audioqna \
132
138
-X POST \
133
139
-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
135
141
```
You can’t perform that action at this time.
0 commit comments