Skip to content

Commit 862474e

Browse files
committed
feat: Use AI Speech realtime transcription to allow interruption
1 parent ad29fab commit 862474e

19 files changed

+805
-541
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,11 @@ communication_services:
411411
resource_id: xxx
412412
sms_queue_name: sms-33612345678
413413
414+
# Must be of type "AI services multi-service account"
414415
cognitive_service:
415-
# Must be of type "AI services multi-service account"
416416
endpoint: https://xxx.cognitiveservices.azure.com
417+
region: swedencentral
418+
resource_id: xxx
417419
418420
llm:
419421
fast:
@@ -632,10 +634,11 @@ Conversation options are represented as features. They can be configured from Ap
632634
| `answer_hard_timeout_sec` | The hard timeout for the bot answer in seconds. | `int` | 180 |
633635
| `answer_soft_timeout_sec` | The soft timeout for the bot answer in seconds. | `int` | 30 |
634636
| `callback_timeout_hour` | The timeout for a callback in hours. | `int` | 3 |
635-
| `phone_silence_timeout_sec` | The timeout for phone silence in seconds. | `int` | 1 |
637+
| `recognition_retry_max` | The maximum number of retries for voice recognition. | `int` | 2 |
636638
| `recording_enabled` | Whether call recording is enabled. | `bool` | false |
637-
| `slow_llm_for_chat` | Whether to use the slower LLM for chat. | `bool` | true |
638-
| `voice_recognition_retry_max` | The maximum number of retries for voice recognition. | `int` | 2 |
639+
| `slow_llm_for_chat` | Whether to use the slow LLM for chat. | `bool` | false |
640+
| `vad_silence_timeout_ms` | The timeout for phone silence in seconds. | `int` | 500 |
641+
| `vad_threshold` | The threshold for voice activity detection. | `float` | 0.5 |
639642

640643
### Use an OpenAI compatible model for the LLM
641644

0 commit comments

Comments
 (0)