class_docstr: Input channel for Twilio Voice.
class_docstr_tok: ["Input","channel","for","Twilio","Voice","."]
docstr: Load custom configurations.
docstr_tok: ["Load","custom","configurations","."]
code: def from_credentials(
      cls, credentials: Optional[Dict[Text, Any]]
  ) -> InputChannel:
      """Load custom configurations."""
      credentials = credentials or {}
  
      return cls(
          credentials.get("initial_prompt", "hello"),
          credentials.get(
              "reprompt_fallback_phrase",
              "I'm sorry I didn't get that could you rephrase.",
          ),
          credentials.get("assistant_voice", "woman"),
          credentials.get("speech_timeout", "5"),
          credentials.get("speech_model", "default"),
          credentials.get("enhanced", "false"),
      )
  
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 2 for calling the TwilioVoiceInput obj's underlying member method code with example usage: obj.from_credentials(cls, credentials) and returns: cls