Files
rag-technical-docs-assistant/docs/evaluation/local-s2s/phase-02-real-components-20261016.json
T
11linear11 a94b8cd3ea feat(voice): implement local S2S retained history and provider selection
Add pinned CPU engine dependencies, retained interrupted-response history, provider admission, offline evaluation and isolated browser tooling.

Record Phase 2 acceptance and Phase 3/4 preparation, bounded paid-test accounting and interruption incident findings. Human interruption acceptance, paired OpenAI evaluation and rollback remain pending.
2026-10-16 17:09:27 -04:00

210 lines
6.9 KiB
JSON

{
"date": "2026-10-16",
"phase": 2,
"status": "real_components_sample_listening_accepted_integration_pending",
"authorization_usd": "1",
"provider_key_cap_usd": "5",
"provider_key_cap_changed": false,
"provider_enforced_test_cap": false,
"attempts": 4,
"stage_observations": [
{
"stage": "tts",
"reserved_usd": "0.25",
"status": "failed",
"http_status": 400,
"headers": {
"content-type": "application/json"
},
"error_type": "HTTPStatusError"
},
{
"stage": "tts_pcm",
"reserved_usd": "0.25",
"status": "received",
"http_status": 200,
"headers": {
"content-type": "audio/pcm;rate=24000;channels=1",
"x-generation-id": "gen-tts-1792147214-vtWNLNMAyxlzEM87Oz23"
},
"bytes": 247680,
"elapsed_seconds": 2.73
},
{
"stage": "stt",
"reserved_usd": "0.05",
"status": "received",
"http_status": 200,
"headers": {
"content-type": "application/json",
"x-generation-id": "gen-stt-1792147218-l61CrhLNYq2tgkQjV8TS"
},
"bytes": 152,
"elapsed_seconds": 1.946
},
{
"stage": "llm",
"reserved_usd": "0.01",
"status": "received",
"http_status": 200,
"headers": {
"content-type": "application/json",
"x-generation-id": "gen-1792147219-rEyCmMLKSrqpXjdZyj4I"
},
"bytes": 842,
"elapsed_seconds": 0.784
}
],
"reserved_usd": "0.56",
"reserve_basis": {
"budget_usd": "1",
"total_reserved_usd": "0.31",
"tts_full_endpoint_maxima_usd": "0.2048000",
"requests_max": 4,
"provider_enforced_test_cap": false,
"basis": "Published endpoint limits/prices, bounded input, fixed requests and no client retries; shared key retains its existing $5 cap.",
"maximum_execution_reserved_usd": "0.56"
},
"first_error": "WAV speech HTTP400; original error response body not retained. Stopped, then explicit PCM-format correction; no automatic retry or model substitution.",
"models": {
"tts": "google/gemini-3.8-flash-lite-tts",
"voice": "Kore",
"stt": "openai/whisper-large-v3",
"llm": "openai/gpt-4.1-mini"
},
"tts": {
"path": ".local-s2s-build/persian-real-tts-one-dollar.wav",
"header_rate": 24000,
"frames": 123840,
"seconds": 5.16,
"rate_independently_verified": false,
"pcm_native_path_tested": true,
"sha256": "1edd8a6ef0182664f58dc6a37464bcfee3ab434e225c161aab3890930fda0998",
"rate_basis": "provider Content-Type audio/pcm;rate=24000;channels=1; saved WAV header is locally constructed",
"independent_physical_sample_rate_measurement": false
},
"reference_text": "سلام، این یک آزمایش کوتاه برای بررسی صدای فارسی است.",
"transcript": " سلام، این یک آزمایش کتاه برای بررسی صدای فارسی است.",
"transcript_observation": "Expected کوتاه; STT returned کتاه. User accepted pronunciation of this single generated sample; the written ASR mismatch is retained.",
"stt_usage": {
"seconds": 10,
"cost": 0.000308333333333
},
"llm": {
"model_returned": "openai/gpt-4.1-mini",
"answer": "سلام! حالت چطوره؟ 😊",
"finish_reason": "stop",
"usage": {
"prompt_tokens": 39,
"completion_tokens": 9,
"total_tokens": 48,
"cost": 3e-05,
"is_byok": false,
"prompt_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 0,
"audio_tokens": 0,
"video_tokens": 0
},
"cost_details": {
"upstream_inference_cost": 3e-05,
"upstream_inference_prompt_cost": 1.56e-05,
"upstream_inference_completions_cost": 1.44e-05
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"image_tokens": 0,
"audio_tokens": 0
}
}
},
"cost": {
"reported_stt_plus_llm_usd": "0.000338333333333",
"tts_actual_cost": "0.00078",
"total_final_cost": null,
"observed_key_usage_delta_usd": "0",
"generation_billing_lookups": [
{
"stage": "tts_pcm",
"generation_id": "gen-tts-1792147214-vtWNLNMAyxlzEM87Oz23",
"status": 404
},
{
"stage": "stt",
"generation_id": "gen-stt-1792147218-l61CrhLNYq2tgkQjV8TS",
"status": 404
},
{
"stage": "llm",
"generation_id": "gen-1792147219-rEyCmMLKSrqpXjdZyj4I",
"status": 404
}
],
"verdict": "Later read-only billing confirms $0.001118333 for the three successful calls. The failed initial WAV attempt is excluded; the newer native-turn cost remains separate and unresolved.",
"latest_successful_three_call_total_usd": "0.001118333",
"latest_generation_billing": [
{
"stage": "tts_pcm",
"generation_id": "gen-tts-1792147214-vtWNLNMAyxlzEM87Oz23",
"http_status": 200,
"billing": {
"total_cost": 0.00078,
"native_tokens_prompt": 12,
"native_tokens_completion": 129,
"provider_name": "Google",
"created_at": "2026-10-16T10:40:14.709Z"
}
},
{
"stage": "stt",
"generation_id": "gen-stt-1792147218-l61CrhLNYq2tgkQjV8TS",
"http_status": 200,
"billing": {
"total_cost": 0.000308333,
"native_tokens_prompt": null,
"native_tokens_completion": null,
"provider_name": "Groq",
"created_at": "2026-10-16T10:40:18.23Z"
}
},
{
"stage": "llm",
"generation_id": "gen-1792147219-rEyCmMLKSrqpXjdZyj4I",
"http_status": 200,
"billing": {
"total_cost": 3e-05,
"native_tokens_prompt": 39,
"native_tokens_completion": 9,
"provider_name": "OpenAI",
"created_at": "2026-10-16T10:40:19.452Z"
}
}
]
},
"source_sha256": {
"docs/evaluation/local-s2s/live-components-one-dollar.py": "b538fb04f032e086e328b0a98527ebf8a7fa893158e81fe8014f879e978da859"
},
"runtime_changes": false,
"heavy_containers_started": false,
"operational_changes": false,
"settings_changes": false,
"remaining": [
"real native engine/component integration and isolated browser acceptance",
"final provider billing confirmation",
"broader Persian/noise/domain vocabulary comparison"
],
"sources": [
"https://openrouter.ai/api/v1/models?output_modalities=all",
"https://openrouter.ai/api/v1/models/google/gemini-3.8-flash-lite-tts/endpoints",
"https://openrouter.ai/api/v1/models/openai/whisper-large-v3/endpoints",
"https://openrouter.ai/docs/client-sdks/python/sdks/tts/README.md",
"https://openrouter.ai/docs/client-sdks/python/sdks/stt/README.md"
],
"human_listening": {
"date": "2026-10-16",
"result": "accepted",
"user_observation": "تلفظ خوب و قابل قبول بود",
"scope": "The single 5.16-second generated Persian sample; not full conversation or a broad Persian benchmark."
}
}