Update readme
This commit is contained in:
35
README.md
35
README.md
@@ -157,41 +157,6 @@ through the existing Pipecat/product audio path without MP3 decoding.
|
||||
Credentials may also be provided through `XFYUN_APP_ID`, `XFYUN_API_KEY`, and
|
||||
`XFYUN_API_SECRET`.
|
||||
|
||||
## Stream A WAV File
|
||||
|
||||
Start the server:
|
||||
|
||||
```bash
|
||||
cd AI-VideoAssistant-engine-v5-pipecat-minimal
|
||||
source .venv/bin/activate
|
||||
export OPENAI_API_KEY=...
|
||||
uvicorn engine.main:app --host 127.0.0.1 --port 8001
|
||||
```
|
||||
|
||||
In another terminal, stream a WAV file through the product adapter:
|
||||
|
||||
```bash
|
||||
cd AI-VideoAssistant-engine-v5-pipecat-minimal
|
||||
source .venv/bin/activate
|
||||
python scripts/stream_wav_product_ws.py \
|
||||
../AI-VideoAssistant-engine-v3-minimal/data/audio_examples/three_utterances_simple.wav \
|
||||
--url ws://127.0.0.1:8001/ws-product \
|
||||
--save-stereo-wav /tmp/product-conversation.wav
|
||||
```
|
||||
|
||||
Or stream a WAV file as Pipecat protobuf audio frames:
|
||||
|
||||
```bash
|
||||
cd AI-VideoAssistant-engine-v5-pipecat-minimal
|
||||
source .venv/bin/activate
|
||||
python scripts/stream_wav_pipecat_ws.py \
|
||||
../AI-VideoAssistant-engine-v3-minimal/data/audio_examples/three_utterances_simple.wav \
|
||||
--url ws://127.0.0.1:8001/ws \
|
||||
--save-stereo-wav /tmp/pipecat-conversation.wav
|
||||
```
|
||||
|
||||
The input WAV must be PCM16 mono at 16 kHz. The script sends 20 ms chunks in real time and prints any text, transcription, message, or audio frames returned by the server.
|
||||
|
||||
## Notes
|
||||
|
||||
This folder keeps the rewrite minimal on purpose. Dograh's useful pattern is the separation between app entrypoint, service factory, and pipeline builder; its workflow graph, database, telephony, recordings, and pricing layers are deliberately left out.
|
||||
|
||||
Reference in New Issue
Block a user