Class: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig
- Defined in:
- lib/telnyx/models/calls/action_answer_params.rb
Defined Under Namespace
Modules: Interruptible, InterruptibleGreeting, TranscriptionEngine, VoiceSettings Classes: InterruptionSettings, Language
Instance Attribute Summary collapse
-
#custom_parameters ⇒ Hash{Symbol=>Object}?
Custom key-value parameters forwarded to the relay session as assistant dynamic variables.
-
#dtmf_detection ⇒ Boolean?
Enable DTMF detection for the relay session.
-
#greeting ⇒ String?
Text played when the relay session starts.
-
#interruptible ⇒ Symbol, ...
Controls when caller input can interrupt assistant speech.
-
#interruptible_greeting ⇒ Symbol, ...
Controls when caller input can interrupt assistant speech.
-
#interruption_settings ⇒ Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings?
Settings for handling caller interruptions during Conversation Relay speech.
-
#language ⇒ String?
Default language for both text-to-speech and speech recognition.
-
#languages ⇒ Array<Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language>?
Per-language TTS and transcription settings.
-
#provider ⇒ String?
Structured voice provider.
-
#structured_provider ⇒ Hash{Symbol=>Object}?
Provider-specific structured voice settings.
-
#transcription_engine ⇒ Symbol, ...
Engine to use for speech recognition.
-
#transcription_engine_config ⇒ Hash{Symbol=>Object}?
Engine-specific transcription settings for Conversation Relay.
-
#tts_provider ⇒ String?
Text-to-speech provider.
-
#url ⇒ String
WebSocket URL for your Conversation Relay server.
-
#voice ⇒ String?
The voice to be used by the voice assistant.
-
#voice_settings ⇒ Telnyx::Models::Calls::ElevenLabsVoiceSettings, ...
The settings associated with the voice selected.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)
Instance Method Summary collapse
- #initialize(type: :inworld) ⇒ Object constructor
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(type: :inworld) ⇒ Object
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 314 class ConversationRelayConfig < Telnyx::Internal::Type::BaseModel # @!attribute url # WebSocket URL for your Conversation Relay server. Must start with `ws://` or # `wss://`. # # @return [String] required :url, String # @!attribute custom_parameters # Custom key-value parameters forwarded to the relay session as assistant dynamic # variables. # # @return [Hash{Symbol=>Object}, nil] optional :custom_parameters, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] # @!attribute dtmf_detection # Enable DTMF detection for the relay session. # # @return [Boolean, nil] optional :dtmf_detection, Telnyx::Internal::Type::Boolean # @!attribute greeting # Text played when the relay session starts. # # @return [String, nil] optional :greeting, String # @!attribute interruptible # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Interruptible, nil] optional :interruptible, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Interruptible } # @!attribute interruptible_greeting # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptibleGreeting, nil] optional :interruptible_greeting, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptibleGreeting } # @!attribute interruption_settings # Settings for handling caller interruptions during Conversation Relay speech. # # @return [Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings, nil] optional :interruption_settings, -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings } # @!attribute language # Default language for both text-to-speech and speech recognition. # # @return [String, nil] optional :language, String # @!attribute languages # Per-language TTS and transcription settings. # # @return [Array<Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language>, nil] optional :languages, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language] } # @!attribute provider # Structured voice provider. Must be supplied together with `structured_provider`. # # @return [String, nil] optional :provider, String # @!attribute structured_provider # Provider-specific structured voice settings. Must be supplied together with # `provider`; Telnyx sends the value as the nested provider configuration for # Conversation Relay. # # @return [Hash{Symbol=>Object}, nil] optional :structured_provider, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] # @!attribute transcription_engine # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - # `Telnyx` are supported for backward compatibility. For Conversation Relay, use # this field with `transcription_engine_config`; the `transcription` object is not # supported. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::TranscriptionEngine, nil] optional :transcription_engine, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::TranscriptionEngine } # @!attribute transcription_engine_config # Engine-specific transcription settings for Conversation Relay. This accepts the # same provider-specific options used by the Call Transcription Start command, # such as `transcription_model`, without requiring the engine discriminator to be # repeated inside this object. # # @return [Hash{Symbol=>Object}, nil] optional :transcription_engine_config, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] # @!attribute tts_provider # Text-to-speech provider. If omitted, Telnyx derives it from `voice` or # `provider`. # # @return [String, nil] optional :tts_provider, String # @!attribute voice # The voice to be used by the voice assistant. Currently we support ElevenLabs, # Telnyx and AWS voices. # # **Supported Providers:** # # - **AWS:** Use `AWS.Polly.<VoiceId>` (e.g., `AWS.Polly.Joanna`). For neural # voices, which provide more realistic, human-like speech, append `-Neural` to # the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the # [available voices](https://docs.aws.amazon.com/polly/latest/dg/available-voices.html) # for compatibility. # - **Azure:** Use `Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural, # Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural, # Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to # [Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).) # - **ElevenLabs:** Use `ElevenLabs.<ModelId>.<VoiceId>` (e.g., # `ElevenLabs.BaseModel.John`). The `ModelId` part is optional. To use # ElevenLabs, you must provide your ElevenLabs API key as an integration secret # under `"voice_settings": {"api_key_ref": "<secret_id>"}`. See # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret) # for details. Check # [available voices](https://elevenlabs.io/docs/api-reference/get-voices). # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`, # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`. # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`, # `ara`, `rex`, `sal`, `leo`. # # @return [String, nil] optional :voice, String # @!attribute voice_settings # The settings associated with the voice selected # # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil] optional :voice_settings, union: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings } # @!method initialize(url:, custom_parameters: nil, dtmf_detection: nil, greeting: nil, interruptible: nil, interruptible_greeting: nil, interruption_settings: nil, language: nil, languages: nil, provider: nil, structured_provider: nil, transcription_engine: nil, transcription_engine_config: nil, tts_provider: nil, voice: nil, voice_settings: nil) # Some parameter documentations has been truncated, see # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig} for more # details. # # Starts a Conversation Relay session automatically when the answered/dialed call # is answered. This embedded shape is supported on `answer` and `dial`. It uses # public field names (`url`, `dtmf_detection`, `greeting`, `voice`, `language`, # etc.) and maps them to the underlying Conversation Relay action. `client_state`, # `tts_language`, and `transcription_language` inside this object are ignored; use # the parent command's `client_state` and `command_id` fields instead. # # @param url [String] WebSocket URL for your Conversation Relay server. Must start with `ws://` or `ws # # @param custom_parameters [Hash{Symbol=>Object}] Custom key-value parameters forwarded to the relay session as assistant dynamic # # @param dtmf_detection [Boolean] Enable DTMF detection for the relay session. # # @param greeting [String] Text played when the relay session starts. # # @param interruptible [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Interruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o # # @param interruptible_greeting [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptibleGreeting] Controls when caller input can interrupt assistant speech. `any` allows speech o # # @param interruption_settings [Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings] Settings for handling caller interruptions during Conversation Relay speech. # # @param language [String] Default language for both text-to-speech and speech recognition. # # @param languages [Array<Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language>] Per-language TTS and transcription settings. # # @param provider [String] Structured voice provider. Must be supplied together with `structured_provider`. # # @param structured_provider [Hash{Symbol=>Object}] Provider-specific structured voice settings. Must be supplied together with `pro # # @param transcription_engine [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny # # @param transcription_engine_config [Hash{Symbol=>Object}] Engine-specific transcription settings for Conversation Relay. This accepts the # # @param tts_provider [String] Text-to-speech provider. If omitted, Telnyx derives it from `voice` or `provider # # @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te # # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig#interruptible module Interruptible extend Telnyx::Internal::Type::Enum NONE = :none ANY = :any SPEECH = :speech DTMF = :dtmf # @!method self.values # @return [Array<Symbol>] end # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig#interruptible_greeting module InterruptibleGreeting extend Telnyx::Internal::Type::Enum NONE = :none ANY = :any SPEECH = :speech DTMF = :dtmf # @!method self.values # @return [Array<Symbol>] end # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig#interruption_settings class InterruptionSettings < Telnyx::Internal::Type::BaseModel # @!attribute enable # Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is # equivalent to `interruptible=none`. # # @return [Boolean, nil] optional :enable, Telnyx::Internal::Type::Boolean # @!attribute interruptible # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::Interruptible, nil] optional :interruptible, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::Interruptible } # @!attribute interruptible_greeting # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting, nil] optional :interruptible_greeting, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting } # @!attribute welcome_greeting_interruptible # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible, nil] optional :welcome_greeting_interruptible, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible } # @!method initialize(enable: nil, interruptible: nil, interruptible_greeting: nil, welcome_greeting_interruptible: nil) # Some parameter documentations has been truncated, see # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings} # for more details. # # Settings for handling caller interruptions during Conversation Relay speech. # # @param enable [Boolean] Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is equ # # @param interruptible [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::Interruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o # # @param interruptible_greeting [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting] Controls when caller input can interrupt assistant speech. `any` allows speech o # # @param welcome_greeting_interruptible [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings#interruptible module Interruptible extend Telnyx::Internal::Type::Enum NONE = :none ANY = :any SPEECH = :speech DTMF = :dtmf # @!method self.values # @return [Array<Symbol>] end # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings#interruptible_greeting module InterruptibleGreeting extend Telnyx::Internal::Type::Enum NONE = :none ANY = :any SPEECH = :speech DTMF = :dtmf # @!method self.values # @return [Array<Symbol>] end # Controls when caller input can interrupt assistant speech. `any` allows speech # or DTMF interruptions; `none` disables interruptions; `speech` allows speech # only; `dtmf` allows DTMF only. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings#welcome_greeting_interruptible module WelcomeGreetingInterruptible extend Telnyx::Internal::Type::Enum NONE = :none ANY = :any SPEECH = :speech DTMF = :dtmf # @!method self.values # @return [Array<Symbol>] end end class Language < Telnyx::Internal::Type::BaseModel # @!attribute language # BCP 47 language tag for this language configuration. # # @return [String] required :language, String # @!attribute speech_model # Conversation Relay speech model. Prefer # `transcription_engine_config.transcription_model` when configuring # speech-to-text. # # @return [String, nil] optional :speech_model, String # @!attribute transcription_engine # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - # `Telnyx` are supported for backward compatibility. When provided in a # Conversation Relay language entry, Telnyx derives `transcription_provider` and # `speech_model` for that language. # # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::TranscriptionEngine, nil] optional :transcription_engine, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::TranscriptionEngine } # @!attribute transcription_engine_config # Engine-specific transcription settings for Conversation Relay. This accepts the # same provider-specific options used by the Call Transcription Start command, # such as `transcription_model`, without requiring the engine discriminator to be # repeated inside this object. # # @return [Hash{Symbol=>Object}, nil] optional :transcription_engine_config, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] # @!attribute transcription_provider # Conversation Relay transcription provider name. Prefer `transcription_engine` # when configuring speech-to-text. # # @return [String, nil] optional :transcription_provider, String # @!attribute tts_provider # Text-to-speech provider for this language. If omitted and `voice` is provided, # Telnyx derives the provider from the voice identifier. # # @return [String, nil] optional :tts_provider, String # @!attribute voice # Voice identifier for this language. # # @return [String, nil] optional :voice, String # @!attribute voice_settings # The settings associated with the voice selected # # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil] optional :voice_settings, union: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings } # @!method initialize(language:, speech_model: nil, transcription_engine: nil, transcription_engine_config: nil, transcription_provider: nil, tts_provider: nil, voice: nil, voice_settings: nil) # Some parameter documentations has been truncated, see # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language} # for more details. # # Language-specific TTS and transcription settings for Conversation Relay. # # @param language [String] BCP 47 language tag for this language configuration. # # @param speech_model [String] Conversation Relay speech model. Prefer `transcription_engine_config.transcripti # # @param transcription_engine [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny # # @param transcription_engine_config [Hash{Symbol=>Object}] Engine-specific transcription settings for Conversation Relay. This accepts the # # @param transcription_provider [String] Conversation Relay transcription provider name. Prefer `transcription_engine` wh # # @param tts_provider [String] Text-to-speech provider for this language. If omitted and `voice` is provided, T # # @param voice [String] Voice identifier for this language. # # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - # `Telnyx` are supported for backward compatibility. When provided in a # Conversation Relay language entry, Telnyx derives `transcription_provider` and # `speech_model` for that language. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language#transcription_engine module TranscriptionEngine extend Telnyx::Internal::Type::Enum GOOGLE = :Google TELNYX = :Telnyx DEEPGRAM = :Deepgram AZURE = :Azure X_AI = :xAI ASSEMBLY_AI = :AssemblyAI SPEECHMATICS = :Speechmatics SONIOX = :Soniox A = :A B = :B # @!method self.values # @return [Array<Symbol>] end # The settings associated with the voice selected # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language#voice_settings module VoiceSettings extend Telnyx::Internal::Type::Union discriminator :type variant :elevenlabs, -> { Telnyx::Calls::ElevenLabsVoiceSettings } variant :telnyx, -> { Telnyx::Calls::TelnyxVoiceSettings } variant :aws, -> { Telnyx::Calls::AwsVoiceSettings } variant :minimax, -> { Telnyx::MinimaxVoiceSettings } variant :azure, -> { Telnyx::AzureVoiceSettings } variant :rime, -> { Telnyx::RimeVoiceSettings } variant :resemble, -> { Telnyx::ResembleVoiceSettings } variant :inworld, -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld } variant :xai, -> { Telnyx::XaiVoiceSettings } class Inworld < Telnyx::Internal::Type::BaseModel # @!attribute type # Voice settings provider type # # @return [Symbol, :inworld] required :type, const: :inworld # @!method initialize(type: :inworld) # @param type [Symbol, :inworld] Voice settings provider type end # @!method self.variants # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)] end end # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - # `Telnyx` are supported for backward compatibility. For Conversation Relay, use # this field with `transcription_engine_config`; the `transcription` object is not # supported. # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig#transcription_engine module TranscriptionEngine extend Telnyx::Internal::Type::Enum GOOGLE = :Google TELNYX = :Telnyx DEEPGRAM = :Deepgram AZURE = :Azure X_AI = :xAI ASSEMBLY_AI = :AssemblyAI SPEECHMATICS = :Speechmatics SONIOX = :Soniox A = :A B = :B # @!method self.values # @return [Array<Symbol>] end # The settings associated with the voice selected # # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig#voice_settings module VoiceSettings extend Telnyx::Internal::Type::Union discriminator :type variant :elevenlabs, -> { Telnyx::Calls::ElevenLabsVoiceSettings } variant :telnyx, -> { Telnyx::Calls::TelnyxVoiceSettings } variant :aws, -> { Telnyx::Calls::AwsVoiceSettings } variant :minimax, -> { Telnyx::MinimaxVoiceSettings } variant :azure, -> { Telnyx::AzureVoiceSettings } variant :rime, -> { Telnyx::RimeVoiceSettings } variant :resemble, -> { Telnyx::ResembleVoiceSettings } variant :inworld, -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld } variant :xai, -> { Telnyx::XaiVoiceSettings } class Inworld < Telnyx::Internal::Type::BaseModel # @!attribute type # Voice settings provider type # # @return [Symbol, :inworld] required :type, const: :inworld # @!method initialize(type: :inworld) # @param type [Symbol, :inworld] Voice settings provider type end # @!method self.variants # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)] end end |
Instance Attribute Details
#custom_parameters ⇒ Hash{Symbol=>Object}?
Custom key-value parameters forwarded to the relay session as assistant dynamic variables.
327 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 327 optional :custom_parameters, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#dtmf_detection ⇒ Boolean?
Enable DTMF detection for the relay session.
333 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 333 optional :dtmf_detection, Telnyx::Internal::Type::Boolean |
#greeting ⇒ String?
Text played when the relay session starts.
339 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 339 optional :greeting, String |
#interruptible ⇒ Symbol, ...
Controls when caller input can interrupt assistant speech. ‘any` allows speech or DTMF interruptions; `none` disables interruptions; `speech` allows speech only; `dtmf` allows DTMF only.
347 348 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 347 optional :interruptible, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Interruptible } |
#interruptible_greeting ⇒ Symbol, ...
Controls when caller input can interrupt assistant speech. ‘any` allows speech or DTMF interruptions; `none` disables interruptions; `speech` allows speech only; `dtmf` allows DTMF only.
356 357 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 356 optional :interruptible_greeting, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptibleGreeting } |
#interruption_settings ⇒ Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings?
Settings for handling caller interruptions during Conversation Relay speech.
363 364 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 363 optional :interruption_settings, -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings } |
#language ⇒ String?
Default language for both text-to-speech and speech recognition.
370 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 370 optional :language, String |
#languages ⇒ Array<Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language>?
Per-language TTS and transcription settings.
376 377 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 376 optional :languages, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language] } |
#provider ⇒ String?
Structured voice provider. Must be supplied together with ‘structured_provider`.
383 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 383 optional :provider, String |
#structured_provider ⇒ Hash{Symbol=>Object}?
Provider-specific structured voice settings. Must be supplied together with ‘provider`; Telnyx sends the value as the nested provider configuration for Conversation Relay.
391 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 391 optional :structured_provider, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#transcription_engine ⇒ Symbol, ...
Engine to use for speech recognition. Legacy values ‘A` - `Google`, `B` - `Telnyx` are supported for backward compatibility. For Conversation Relay, use this field with `transcription_engine_config`; the `transcription` object is not supported.
400 401 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 400 optional :transcription_engine, enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::TranscriptionEngine } |
#transcription_engine_config ⇒ Hash{Symbol=>Object}?
Engine-specific transcription settings for Conversation Relay. This accepts the same provider-specific options used by the Call Transcription Start command, such as ‘transcription_model`, without requiring the engine discriminator to be repeated inside this object.
410 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 410 optional :transcription_engine_config, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#tts_provider ⇒ String?
Text-to-speech provider. If omitted, Telnyx derives it from ‘voice` or `provider`.
417 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 417 optional :tts_provider, String |
#url ⇒ String
WebSocket URL for your Conversation Relay server. Must start with ‘ws://` or `wss://`.
320 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 320 required :url, String |
#voice ⇒ String?
The voice to be used by the voice assistant. Currently we support ElevenLabs, Telnyx and AWS voices.
**Supported Providers:**
-
AWS: Use ‘AWS.Polly.<VoiceId>` (e.g., `AWS.Polly.Joanna`). For neural voices, which provide more realistic, human-like speech, append `-Neural` to the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the [available voices](docs.aws.amazon.com/polly/latest/dg/available-voices.html) for compatibility.
-
Azure: Use ‘Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural, Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural, Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to [Azure Voice Gallery](speech.microsoft.com/portal/voicegallery).)
-
ElevenLabs: Use ‘ElevenLabs.<ModelId>.<VoiceId>` (e.g., `ElevenLabs.BaseModel.John`). The `ModelId` part is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an integration secret under `“voice_settings”: “<secret_id>”`. See [integration secrets documentation](developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret) for details. Check [available voices](elevenlabs.io/docs/api-reference/get-voices).
-
Telnyx: Use ‘Telnyx.<model_id>.<voice_id>`
-
Inworld: Use ‘Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`, `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
-
xAI: Use ‘xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`, `ara`, `rex`, `sal`, `leo`.
448 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 448 optional :voice, String |
#voice_settings ⇒ Telnyx::Models::Calls::ElevenLabsVoiceSettings, ...
The settings associated with the voice selected
454 455 |
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 454 optional :voice_settings, union: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 514
|
.variants ⇒ Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)
|
|
# File 'lib/telnyx/models/calls/action_answer_params.rb', line 784
|