api has llm response event
This commit is contained in:
@@ -6,7 +6,7 @@ Creates a 16kHz mono WAV file with real speech segments separated by
|
||||
configurable silence (for VAD/testing).
|
||||
|
||||
Usage:
|
||||
python scripts/generate_test_audio.py [OPTIONS]
|
||||
python generate_test_audio.py [OPTIONS]
|
||||
|
||||
Options:
|
||||
-o, --output PATH Output WAV path (default: data/audio_examples/two_utterances_16k.wav)
|
||||
@@ -18,19 +18,18 @@ Options:
|
||||
|
||||
Examples:
|
||||
# Default utterances and output
|
||||
python scripts/generate_test_audio.py
|
||||
python generate_test_audio.py
|
||||
|
||||
# Custom output path
|
||||
python scripts/generate_test_audio.py -o out.wav
|
||||
python generate_test_audio.py -o out.wav
|
||||
|
||||
# Utterances from command line
|
||||
python scripts/generate_test_audio.py -u "Hello" -u "World" -o test.wav
|
||||
python generate_test_audio.py -u "Hello" -u "World" -o test.wav
|
||||
|
||||
# Utterances from JSON file
|
||||
python scripts/generate_test_audio.py -j utterances.json -o test.wav
|
||||
# Utterancgenerate_test_audio.py -j utterances.json -o test.wav
|
||||
|
||||
# Custom silence (1s between utterances)
|
||||
python scripts/generate_test_audio.py -u "One" -u "Two" --silence-ms 1000 -o test.wav
|
||||
python generate_test_audio.py -u "One" -u "Two" --silence-ms 1000 -o test.wav
|
||||
|
||||
Requires SILICONFLOW_API_KEY in .env.
|
||||
"""
|
||||
@@ -47,7 +46,7 @@ from dotenv import load_dotenv
|
||||
|
||||
|
||||
# Load .env file from project root
|
||||
project_root = Path(__file__).parent.parent
|
||||
project_root = Path(__file__).parent.parent.parent
|
||||
load_dotenv(project_root / ".env")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user