Class: Twilio::TwiML::Stop

Inherits:
TwiML
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/voice_response.rb

Overview

TwiML Verb

Instance Attribute Summary

Attributes inherited from TwiML

#name

Instance Method Summary collapse

Methods inherited from TwiML

#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml

Constructor Details

#initialize(**keyword_args) {|_self| ... } ⇒ Stop

Returns a new instance of Stop.

Yields:

  • (_self)

Yield Parameters:



341
342
343
344
345
346
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 341

def initialize(**keyword_args)
  super(**keyword_args)
  @name = 'Stop'

  yield(self) if block_given?
end

Instance Method Details

#media_filter(name: nil, filter_type: nil, model: nil, track: nil, **keyword_args) {|media_filter| ... } ⇒ Object

Create a new element

name

Friendly name given to the Media Filter

filter_type

Type of filter to be applied to the media

model

Model used by the media filter

track

Track to be filtered

keyword_args

additional attributes

Yields:



414
415
416
417
418
419
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 414

def media_filter(name: nil, filter_type: nil, model: nil, track: nil, **keyword_args)
  media_filter = MediaFilter.new(name: name, filter_type: filter_type, model: model, track: track, **keyword_args)

  yield(media_filter) if block_given?
  append(media_filter)
end

#siprec(name: nil, connector_name: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args) {|siprec| ... } ⇒ Object

Create a new element

name

Friendly name given to SIPREC

connector_name

Unique name for Connector

track

Track to be streamed to remote service

status_callback

Status Callback URL

status_callback_method

Status Callback URL method

keyword_args

additional attributes

Yields:



374
375
376
377
378
379
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 374

def siprec(name: nil, connector_name: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
  siprec = Siprec.new(name: name, connector_name: connector_name, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)

  yield(siprec) if block_given?
  append(siprec)
end

#stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, audio_format: nil, sample_rate: nil, **keyword_args) {|stream| ... } ⇒ Object

Create a new element

name

Friendly name given to the Stream

connector_name

Unique name for Stream Connector

url

URL of the remote service where the Stream is routed

track

Track to be streamed to remote service

status_callback

Status Callback URL

status_callback_method

Status Callback URL method

audio_format

Required Audio Format

sample_rate

Sample Rate for HD Codec

keyword_args

additional attributes

Yields:



359
360
361
362
363
364
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 359

def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, audio_format: nil, sample_rate: nil, **keyword_args)
  stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, audio_format: audio_format, sample_rate: sample_rate, **keyword_args)

  yield(stream) if block_given?
  append(stream)
end

#transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, conversation_id: nil, conversation_configuration: nil, **keyword_args) {|transcription| ... } ⇒ Object

Create a new element

name

Friendly name given to the Transcription

track

Track to be analyze by the provider

status_callback_url

Status Callback URL

status_callback_method

Status Callback URL method

inbound_track_label

Friendly name given to the Inbound Track

outbound_track_label

Friendly name given to the Outbound Track Label

partial_results

Indicates if partial results are going to be send to the customer

language_code

Language Code used by the transcription engine

transcription_engine

Transcription Engine to be used

profanity_filter

Enable Profanity Filter

speech_model

Speech Model used by the transcription engine

hints

Hints to be provided to the transcription engine

enable_automatic_punctuation

Enable Automatic Punctuation

intelligence_service

The SID or the unique name of the Intelligence Service to be used

conversation_id

The ID of the Conversation

conversation_configuration

The ID or the unique name of the Conversation configuration to be used

keyword_args

additional attributes

Yields:



400
401
402
403
404
405
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 400

def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, conversation_id: nil, conversation_configuration: nil, **keyword_args)
  transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, conversation_id: conversation_id, conversation_configuration: conversation_configuration, **keyword_args)

  yield(transcription) if block_given?
  append(transcription)
end