Assistant answers general questions and stays silent for overheard talk ("Ignored." is not said); stt prompt setting sent as the transcription prompt
Docs / docs (push) Successful in 39s
Playwright Tests / test-playwright (1, 2) (push) Successful in 4m26s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m25s
pre-commit / pre-commit (push) Successful in 3m24s
Test Backend / test-backend (3.12) (push) Successful in 6m3s
Test Backend / test-backend (3.14) (push) Successful in 5m41s
Compose Smoke Test / test-compose (push) Successful in 35s
Playwright Tests / merge-reports (push) Successful in 1m20s
Docs / docs (push) Successful in 39s
Playwright Tests / test-playwright (1, 2) (push) Successful in 4m26s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m25s
pre-commit / pre-commit (push) Successful in 3m24s
Test Backend / test-backend (3.12) (push) Successful in 6m3s
Test Backend / test-backend (3.14) (push) Successful in 5m41s
Compose Smoke Test / test-compose (push) Successful in 35s
Playwright Tests / merge-reports (push) Successful in 1m20s
This commit is contained in:
@@ -52,8 +52,8 @@ def test_units_and_clock_times_are_said_as_words():
|
||||
def test_an_utterance_is_one_session_committed_when_listening_ends(monkeypatch):
|
||||
heard: list[bytes] = []
|
||||
|
||||
async def session(api_base, audio, *, rate, idle_s):
|
||||
assert (api_base, rate) == (f"{URL}/v1", 16000)
|
||||
async def session(api_base, audio, *, rate, idle_s, prompt):
|
||||
assert (api_base, rate, prompt) == (f"{URL}/v1", 16000, "Driveway.")
|
||||
while (chunk := await audio.get()) is not None:
|
||||
heard.append(chunk)
|
||||
yield False, "turn on"
|
||||
@@ -79,6 +79,7 @@ def test_an_utterance_is_one_session_committed_when_listening_ends(monkeypatch):
|
||||
MessageSpec(name="partial", dtype=DType.STR),
|
||||
MessageSpec(name="text", dtype=DType.STR),
|
||||
],
|
||||
params={"prompt": "Driveway."},
|
||||
)
|
||||
node.assign_flow("voice", "stt")
|
||||
pipeline = Pipeline([node])
|
||||
|
||||
Reference in New Issue
Block a user