メニュー

Fork Stream

Studio uses Widgets to represent various parts of Twilio's API that can then be stitched together in your Studio Flow to build out robust applications that require no coding on your part.

New to Twilio Studio? Check out our Getting Started guide!

The Fork Stream Widget allows you to send real-time audio streams of a phone call over the Internet. Websocket and SIPREC protocols are supported.

Fork Stream Studio Widget

Required Configuration for Fork Stream

The Fork Stream Widget requires an action specification to function properly. The action designates whether the Flow should start or stop streaming the phone call.

名前 概要
Action Whether you want to Start or Stop a stream. スタート!

Optional Configuration for Fork Stream

The Fork Stream Widget also accepts a number of configuration options that you can use to configure Stream properties and additional paramters to be sent.

名前 概要
Stream Name Friendly name given to the Stream. AudioStream
Stream Type Transport protocol, one of WebSocket or SIPREC. WebSocket
URL URL of the service where to stream the audio. This is required when the Stream Type is WebSocket. The only supported protocol is wss. wss://cool.process.io
Connector Name Name of the Add-on use to configure the Stream. This is required when Stream Type is SIPREC. Gridspace_1
Tracks Select audio streams to be sent. Can be any of: Inbound Track, Outbound Track or Both Tracks Inbound Track
Stream Parameters Zero or more extra parameters expressed as key/value pairs that will be sent to the remote service during connection. Key: Custom1, Value: Bob

Fork Stream Transitions

These events trigger transitions from this Widget to another Widget in your Flow. For more information on working with Studio transitions, see this guide.

名前 概要
Fires immediately after the Stream connection has been created (Start) or terminated (Stop).

Example: Fork for Processing

In the call flow screenshot below the audio streams of an incoming call are forked for real-time processing while the call is bridged to another phone number.

Fork Stream Studio Flow

さらに詳しく

Now that you know the basics of the Fork Stream Widget, why not learn more about Media Streams?

  • Learn the benefits and implementation of streaming a phone call in an introduction to Media Streams.
  • For more information on how to leverage Media Streams for your custom voice builds, check out the docs.

皆さまが何を開発されるのか、目にするのが待ちきれません!

ページを評価:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

フィードバックくださりありがとうございます!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

ステップ1

Get link

Get a free personal referral link here

ステップ2:

Give $10

Your user signs up and upgrade using link

ステップ3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more