class_docstr: Input channel for Twilio Voice.
class_docstr_tok: ["Input","channel","for","Twilio","Voice","."]
docstr: Creates a connection to Twilio voice.
  
  Args:
      initial_prompt: text to use to prompt a conversation when call is answered.
      reprompt_fallback_phrase: phrase to use if no user response.
      assistant_voice: name of the assistant voice to use.
      speech_timeout: how long to pause when user finished speaking.
      speech_model: type of transcription model to use from Twilio.
      enhanced: toggle to use Twilio's premium speech transcription model.
docstr_tok: ["Creates","a","connection","to","Twilio","voice",".","Args",":","initial_prompt",":","text","to","use","to","prompt","a","conversation","when","call","is","answered",".","reprompt_fallback_phrase",":","phrase","to","use","if","no","user","response",".","assistant_voice",":","name","of","the","assistant","voice","to","use",".","speech_timeout",":","how","long","to","pause","when","user","finished","speaking",".","speech_model",":","type","of","transcription","model","to","use","from","Twilio",".","enhanced",":","toggle","to","use","Twilio","'s","premium","speech","transcription","model","."]
code: def __init__(
      self,
      initial_prompt: Optional[Text],
      reprompt_fallback_phrase: Optional[Text],
      assistant_voice: Optional[Text],
      speech_timeout: Text = "5",
      speech_model: Text = "default",
      enhanced: Text = "false",
  ) -> None:
      """Creates a connection to Twilio voice.
  
      Args:
          initial_prompt: text to use to prompt a conversation when call is answered.
          reprompt_fallback_phrase: phrase to use if no user response.
          assistant_voice: name of the assistant voice to use.
          speech_timeout: how long to pause when user finished speaking.
          speech_model: type of transcription model to use from Twilio.
          enhanced: toggle to use Twilio's premium speech transcription model.
      """
      self.initial_prompt = initial_prompt
      self.reprompt_fallback_phrase = reprompt_fallback_phrase
      self.assistant_voice = assistant_voice
      self.speech_timeout = speech_timeout
      self.speech_model = speech_model
      self.enhanced = enhanced
  
      self._validate_configuration()
  
imports: from sanic import Blueprint, response
  from sanic.request import Request
  from sanic.response import HTTPResponse
  from twilio.twiml.voice_response import VoiceResponse, Gather
  from typing import Text, Callable, Awaitable, List, Any, Dict, Optional
  import rasa.utils.io
  import rasa.shared.utils.io
  from rasa.shared.core.events import BotUttered
  from rasa.shared.exceptions import InvalidConfigException
  from rasa.core.channels.channel import InputChannel, CollectingOutputChannel, UserMessage
label_desc: Use image node_id 3 to create a new TwilioVoiceInput object from inherited base classes: InputChannel with example: obj = TwilioVoiceInput(initial_prompt, reprompt_fallback_phrase, assistant_voice, speech_timeout, speech_model, enhanced)