mux_ruby 3.5.2 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +4 -4
  4. data/docs/CreateLiveStreamRequest.md +2 -0
  5. data/docs/CreateTranscriptionVocabularyRequest.md +22 -0
  6. data/docs/ListTranscriptionVocabulariesResponse.md +18 -0
  7. data/docs/LiveStream.md +3 -1
  8. data/docs/LiveStreamGeneratedSubtitleSettings.md +24 -0
  9. data/docs/LiveStreamsApi.md +73 -0
  10. data/docs/MetricsApi.md +2 -2
  11. data/docs/SpacesApi.md +1 -1
  12. data/docs/Track.md +2 -0
  13. data/docs/TranscriptionVocabulariesApi.md +367 -0
  14. data/docs/TranscriptionVocabulary.md +28 -0
  15. data/docs/TranscriptionVocabularyResponse.md +18 -0
  16. data/docs/UpdateLiveStreamGeneratedSubtitlesRequest.md +18 -0
  17. data/docs/UpdateTranscriptionVocabularyRequest.md +22 -0
  18. data/docs/VideoView.md +11 -1
  19. data/gen/generator-config.json +1 -1
  20. data/gen/templates/partial_model_generic.mustache +2 -2
  21. data/lib/mux_ruby/api/live_streams_api.rb +71 -0
  22. data/lib/mux_ruby/api/metrics_api.rb +2 -2
  23. data/lib/mux_ruby/api/spaces_api.rb +2 -2
  24. data/lib/mux_ruby/api/transcription_vocabularies_api.rb +349 -0
  25. data/lib/mux_ruby/models/create_live_stream_request.rb +18 -6
  26. data/lib/mux_ruby/models/create_transcription_vocabulary_request.rb +265 -0
  27. data/lib/mux_ruby/models/list_transcription_vocabularies_response.rb +220 -0
  28. data/lib/mux_ruby/models/live_stream.rb +14 -2
  29. data/lib/mux_ruby/models/live_stream_generated_subtitle_settings.rb +287 -0
  30. data/lib/mux_ruby/models/track.rb +23 -1
  31. data/lib/mux_ruby/models/transcription_vocabulary.rb +286 -0
  32. data/lib/mux_ruby/models/transcription_vocabulary_response.rb +218 -0
  33. data/lib/mux_ruby/models/update_live_stream_generated_subtitles_request.rb +221 -0
  34. data/lib/mux_ruby/models/update_live_stream_request.rb +5 -5
  35. data/lib/mux_ruby/models/update_transcription_vocabulary_request.rb +265 -0
  36. data/lib/mux_ruby/models/video_view.rb +55 -5
  37. data/lib/mux_ruby/version.rb +1 -1
  38. data/lib/mux_ruby.rb +8 -0
  39. data/spec/api/transcription_vocabularies_api_spec.rb +97 -0
  40. data/spec/models/create_transcription_vocabulary_request_spec.rb +46 -0
  41. data/spec/models/list_transcription_vocabularies_response_spec.rb +34 -0
  42. data/spec/models/live_stream_generated_subtitle_settings_spec.rb +56 -0
  43. data/spec/models/transcription_vocabulary_response_spec.rb +34 -0
  44. data/spec/models/transcription_vocabulary_spec.rb +64 -0
  45. data/spec/models/update_live_stream_generated_subtitles_request_spec.rb +34 -0
  46. data/spec/models/update_transcription_vocabulary_request_spec.rb +46 -0
  47. metadata +151 -119
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd38dc911b0fd31d8689bbe417515a3bfc2558471109affd2351fe92acfd75e1
4
- data.tar.gz: b758460cb7bb4dab0c867798d665acfa25600d2a97b89a38fc7ee04699b9c47a
3
+ metadata.gz: eb2b29c567025de72eb9d0189c6e1fa2ec9ea8689ac93e55863bb12695b9af2c
4
+ data.tar.gz: b5526bace178c2d507bdf6749eb941c3f6112b3359bebe8f7cc916a4654e2625
5
5
  SHA512:
6
- metadata.gz: 22c5a221c34578f6ef0c01fb661e69d01f48f10033225f2489015f68cb5d004b94d847015d0f73de7f9b75e72221a28bb8c4919764762e10f463742b9f09ea96
7
- data.tar.gz: 8bf7ea579f6ff5eeb608deb4e478e5813db49047b85740180c15c931141372aa88b2e6c593ddcbb28313cd2847e219fb436786a0d678c498be2bbf602fc8c894
6
+ metadata.gz: ae1c009ff5fdbc689afe779a07f42761c39bb3f0d3ba026474bfe3aa8464fb5f44e61cd0403986a1d3cae6c9d6ec3ade7d3976e7e0a2b128a117f2486980b24a
7
+ data.tar.gz: ff95553d55ab84a4baa91bc0ccab2d9f8ea68092dcde483bd3befcd6c05c88e94cff82589c81f30a8824805945bd565f7f59021f184c55738f60d33e043756d2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mux_ruby (3.5.2)
4
+ mux_ruby (3.6.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -13,7 +13,7 @@ GEM
13
13
  diff-lcs (1.3)
14
14
  ethon (0.15.0)
15
15
  ffi (>= 1.15.0)
16
- ffi (1.15.5)
16
+ ffi (1.15.4)
17
17
  jaro_winkler (1.5.4)
18
18
  method_source (1.0.0)
19
19
  parallel (1.20.1)
data/README.md CHANGED
@@ -23,7 +23,7 @@ Not familiar with Mux? Check out https://mux.com/ for more information.
23
23
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
24
24
 
25
25
  - API version: v1
26
- - Package version: 3.5.2
26
+ - Package version: 3.6.0
27
27
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
28
28
  For more information, please visit [https://docs.mux.com](https://docs.mux.com)
29
29
 
@@ -40,16 +40,16 @@ gem build mux_ruby.gemspec
40
40
  Then either install the gem locally:
41
41
 
42
42
  ```shell
43
- gem install ./mux_ruby-3.5.2.gem
43
+ gem install ./mux_ruby-3.6.0.gem
44
44
  ```
45
45
 
46
- (for development, run `gem install --dev ./mux_ruby-3.5.2.gem` to install the development dependencies)
46
+ (for development, run `gem install --dev ./mux_ruby-3.6.0.gem` to install the development dependencies)
47
47
 
48
48
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
49
49
 
50
50
  Finally add this to the Gemfile:
51
51
 
52
- gem 'mux_ruby', '~> 3.5.2'
52
+ gem 'mux_ruby', '~> 3.6.0'
53
53
 
54
54
  ### Install from Git
55
55
 
@@ -10,6 +10,7 @@
10
10
  | **passthrough** | **String** | | [optional] |
11
11
  | **audio_only** | **Boolean** | Force the live stream to only process the audio track when the value is set to true. Mux drops the video track if broadcasted. | [optional] |
12
12
  | **embedded_subtitles** | [**Array<LiveStreamEmbeddedSubtitleSettings>**](LiveStreamEmbeddedSubtitleSettings.md) | Describe the embedded closed caption contents of the incoming live stream. | [optional] |
13
+ | **generated_subtitles** | [**Array<LiveStreamGeneratedSubtitleSettings>**](LiveStreamGeneratedSubtitleSettings.md) | Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. | [optional] |
13
14
  | **reduced_latency** | **Boolean** | This field is deprecated. Please use latency_mode instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. Note: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ | [optional] |
14
15
  | **low_latency** | **Boolean** | This field is deprecated. Please use latency_mode instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. Note: Reconnect windows are incompatible with Low Latency and will always be set to zero (0) seconds. | [optional] |
15
16
  | **latency_mode** | **String** | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Note: Reconnect windows are incompatible with Reduced Latency and Low Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] |
@@ -29,6 +30,7 @@ instance = MuxRuby::CreateLiveStreamRequest.new(
29
30
  passthrough: null,
30
31
  audio_only: null,
31
32
  embedded_subtitles: null,
33
+ generated_subtitles: null,
32
34
  reduced_latency: null,
33
35
  low_latency: null,
34
36
  latency_mode: null,
@@ -0,0 +1,22 @@
1
+ # MuxRuby::CreateTranscriptionVocabularyRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | The user-supplied name of the Transcription Vocabulary. | [optional] |
8
+ | **phrases** | **Array<String>** | Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. | |
9
+ | **passthrough** | **String** | Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'mux_ruby'
15
+
16
+ instance = MuxRuby::CreateTranscriptionVocabularyRequest.new(
17
+ name: null,
18
+ phrases: null,
19
+ passthrough: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # MuxRuby::ListTranscriptionVocabulariesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<TranscriptionVocabulary>**](TranscriptionVocabulary.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mux_ruby'
13
+
14
+ instance = MuxRuby::ListTranscriptionVocabulariesResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+
data/docs/LiveStream.md CHANGED
@@ -15,7 +15,8 @@
15
15
  | **passthrough** | **String** | Arbitrary user-supplied metadata set for the asset. Max 255 characters. | [optional] |
16
16
  | **audio_only** | **Boolean** | The live stream only processes the audio track if the value is set to true. Mux drops the video track if broadcasted. | [optional] |
17
17
  | **embedded_subtitles** | [**Array<LiveStreamEmbeddedSubtitleSettings>**](LiveStreamEmbeddedSubtitleSettings.md) | Describes the embedded closed caption configuration of the incoming live stream. | [optional] |
18
- | **reconnect_window** | **Float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. **Min**: 0.1s. **Max**: 300s (5 minutes). | [optional][default to 60] |
18
+ | **generated_subtitles** | [**Array<LiveStreamGeneratedSubtitleSettings>**](LiveStreamGeneratedSubtitleSettings.md) | Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. | [optional] |
19
+ | **reconnect_window** | **Float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. **Min**: 0.1s. **Max**: 1800s (30 minutes). | [optional][default to 60] |
19
20
  | **reduced_latency** | **Boolean** | This field is deprecated. Please use latency_mode instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. **Note**: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs. | [optional] |
20
21
  | **low_latency** | **Boolean** | This field is deprecated. Please use latency_mode instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. Note: Reconnect windows are incompatible with Low Latency and will always be set to zero (0) seconds. | [optional] |
21
22
  | **simulcast_targets** | [**Array<SimulcastTarget>**](SimulcastTarget.md) | Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms). | [optional] |
@@ -40,6 +41,7 @@ instance = MuxRuby::LiveStream.new(
40
41
  passthrough: null,
41
42
  audio_only: null,
42
43
  embedded_subtitles: null,
44
+ generated_subtitles: null,
43
45
  reconnect_window: null,
44
46
  reduced_latency: null,
45
47
  low_latency: null,
@@ -0,0 +1,24 @@
1
+ # MuxRuby::LiveStreamGeneratedSubtitleSettings
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | A name for this live stream subtitle track. | [optional] |
8
+ | **passthrough** | **String** | Arbitrary metadata set for the live stream subtitle track. Max 255 characters. | [optional] |
9
+ | **language_code** | **String** | The language to generate subtitles in. | [optional][default to 'en'] |
10
+ | **transcription_vocabulary_ids** | **Array<String>** | Unique identifiers for existing Transcription Vocabularies to use while generating subtitles for the live stream. If the Transcription Vocabularies provided collectively have more than 1000 phrases, only the first 1000 phrases will be included. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'mux_ruby'
16
+
17
+ instance = MuxRuby::LiveStreamGeneratedSubtitleSettings.new(
18
+ name: null,
19
+ passthrough: null,
20
+ language_code: null,
21
+ transcription_vocabulary_ids: null
22
+ )
23
+ ```
24
+
@@ -20,6 +20,7 @@ All URIs are relative to *https://api.mux.com*
20
20
  | [**signal_live_stream_complete**](LiveStreamsApi.md#signal_live_stream_complete) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/complete | Signal a live stream is finished |
21
21
  | [**update_live_stream**](LiveStreamsApi.md#update_live_stream) | **PATCH** /video/v1/live-streams/{LIVE_STREAM_ID} | Update a live stream |
22
22
  | [**update_live_stream_embedded_subtitles**](LiveStreamsApi.md#update_live_stream_embedded_subtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/embedded-subtitles | Update a live stream's embedded subtitles |
23
+ | [**update_live_stream_generated_subtitles**](LiveStreamsApi.md#update_live_stream_generated_subtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/generated-subtitles | Update a live stream's generated subtitles |
23
24
 
24
25
 
25
26
  ## create_live_stream
@@ -1162,3 +1163,75 @@ end
1162
1163
  - **Content-Type**: application/json
1163
1164
  - **Accept**: application/json
1164
1165
 
1166
+
1167
+ ## update_live_stream_generated_subtitles
1168
+
1169
+ > <LiveStreamResponse> update_live_stream_generated_subtitles(live_stream_id, update_live_stream_generated_subtitles_request)
1170
+
1171
+ Update a live stream's generated subtitles
1172
+
1173
+ Updates a live stream's automatic-speech-recognition-generated subtitle configuration. Automatic speech recognition subtitles can be removed by sending an empty array in the request payload.
1174
+
1175
+ ### Examples
1176
+
1177
+ ```ruby
1178
+ require 'time'
1179
+ require 'mux_ruby'
1180
+ # setup authorization
1181
+ MuxRuby.configure do |config|
1182
+ # Configure HTTP basic authorization: accessToken
1183
+ config.username = 'YOUR USERNAME'
1184
+ config.password = 'YOUR PASSWORD'
1185
+ end
1186
+
1187
+ api_instance = MuxRuby::LiveStreamsApi.new
1188
+ live_stream_id = 'live_stream_id_example' # String | The live stream ID
1189
+ update_live_stream_generated_subtitles_request = MuxRuby::UpdateLiveStreamGeneratedSubtitlesRequest.new # UpdateLiveStreamGeneratedSubtitlesRequest |
1190
+
1191
+ begin
1192
+ # Update a live stream's generated subtitles
1193
+ result = api_instance.update_live_stream_generated_subtitles(live_stream_id, update_live_stream_generated_subtitles_request)
1194
+ p result
1195
+ rescue MuxRuby::ApiError => e
1196
+ puts "Error when calling LiveStreamsApi->update_live_stream_generated_subtitles: #{e}"
1197
+ end
1198
+ ```
1199
+
1200
+ #### Using the update_live_stream_generated_subtitles_with_http_info variant
1201
+
1202
+ This returns an Array which contains the response data, status code and headers.
1203
+
1204
+ > <Array(<LiveStreamResponse>, Integer, Hash)> update_live_stream_generated_subtitles_with_http_info(live_stream_id, update_live_stream_generated_subtitles_request)
1205
+
1206
+ ```ruby
1207
+ begin
1208
+ # Update a live stream's generated subtitles
1209
+ data, status_code, headers = api_instance.update_live_stream_generated_subtitles_with_http_info(live_stream_id, update_live_stream_generated_subtitles_request)
1210
+ p status_code # => 2xx
1211
+ p headers # => { ... }
1212
+ p data # => <LiveStreamResponse>
1213
+ rescue MuxRuby::ApiError => e
1214
+ puts "Error when calling LiveStreamsApi->update_live_stream_generated_subtitles_with_http_info: #{e}"
1215
+ end
1216
+ ```
1217
+
1218
+ ### Parameters
1219
+
1220
+ | Name | Type | Description | Notes |
1221
+ | ---- | ---- | ----------- | ----- |
1222
+ | **live_stream_id** | **String** | The live stream ID | |
1223
+ | **update_live_stream_generated_subtitles_request** | [**UpdateLiveStreamGeneratedSubtitlesRequest**](UpdateLiveStreamGeneratedSubtitlesRequest.md) | | |
1224
+
1225
+ ### Return type
1226
+
1227
+ [**LiveStreamResponse**](LiveStreamResponse.md)
1228
+
1229
+ ### Authorization
1230
+
1231
+ [accessToken](../README.md#accessToken)
1232
+
1233
+ ### HTTP request headers
1234
+
1235
+ - **Content-Type**: application/json
1236
+ - **Accept**: application/json
1237
+
data/docs/MetricsApi.md CHANGED
@@ -38,7 +38,7 @@ opts = {
38
38
  filters: ['inner_example'], # Array<String> | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
39
39
  measurement: '95th', # String | Measurement for the provided metric. If omitted, the default for the metric will be used.
40
40
  order_direction: 'asc', # String | Sort order.
41
- group_by: 'ten_minutes' # String | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of 6 hours or less, the default granularity is `ten_minutes`. Between 6 hours and 15 hours inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 hours is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
41
+ group_by: 'ten_minutes' # String | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of 6 hours or less, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
42
42
  }
43
43
 
44
44
  begin
@@ -77,7 +77,7 @@ end
77
77
  | **filters** | [**Array&lt;String&gt;**](String.md) | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60; | [optional] |
78
78
  | **measurement** | **String** | Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] |
79
79
  | **order_direction** | **String** | Sort order. | [optional] |
80
- | **group_by** | **String** | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of 6 hours or less, the default granularity is &#x60;ten_minutes&#x60;. Between 6 hours and 15 hours inclusive, the default granularity is &#x60;hour&#x60;. The granularity of timeframes that exceed 15 hours is &#x60;day&#x60;. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. | [optional] |
80
+ | **group_by** | **String** | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of 6 hours or less, the default granularity is &#x60;ten_minutes&#x60;. Between 6 hours and 15 days inclusive, the default granularity is &#x60;hour&#x60;. The granularity of timeframes that exceed 15 days is &#x60;day&#x60;. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. | [optional] |
81
81
 
82
82
  ### Return type
83
83
 
data/docs/SpacesApi.md CHANGED
@@ -91,7 +91,7 @@ end
91
91
 
92
92
  Create a space broadcast
93
93
 
94
- Creates a new broadcast. Broadcasts are used to create composited versions of your space, which can be broadcast to live streams. **Note:** By default only a single broadcast destination can be specified. Contact Mux support if you need more.
94
+ Creates a new broadcast. Broadcasts are used to create composited versions of your space, which can be broadcast to live streams. **Note:** By default only a single broadcast destination can be specified. Contact Mux support if you need more.
95
95
 
96
96
  ### Examples
97
97
 
data/docs/Track.md CHANGED
@@ -13,6 +13,7 @@
13
13
  | **max_channels** | **Integer** | The maximum number of audio channels the track supports. Only set for the &#x60;audio&#x60; type track. | [optional] |
14
14
  | **max_channel_layout** | **String** | Only set for the &#x60;audio&#x60; type track. | [optional] |
15
15
  | **text_type** | **String** | This parameter is only set for &#x60;text&#x60; type tracks. | [optional] |
16
+ | **text_source** | **String** | The source of the text contained in a Track of type &#x60;text&#x60;. Valid &#x60;text_source&#x60; values are listed below. * &#x60;uploaded&#x60;: Tracks uploaded to Mux as caption or subtitle files using the Create Asset Track API. * &#x60;embedded&#x60;: Tracks extracted from an embedded stream of CEA-608 closed captions. * &#x60;generated_live&#x60;: Tracks generated by automatic speech recognition on a live stream configured with &#x60;generated_subtitles&#x60;. If an Asset has both &#x60;generated_live&#x60; and &#x60;generated_live_final&#x60; tracks that are &#x60;ready&#x60;, then only the &#x60;generated_live_final&#x60; track will be included during playback. * &#x60;generated_live_final&#x60;: Tracks generated by automatic speech recognition on a live stream using &#x60;generated_subtitles&#x60;. The accuracy, timing, and formatting of these subtitles is improved compared to the corresponding &#x60;generated_live&#x60; tracks. However, &#x60;generated_live_final&#x60; tracks will not be available in &#x60;ready&#x60; status until the live stream ends. If an Asset has both &#x60;generated_live&#x60; and &#x60;generated_live_final&#x60; tracks that are &#x60;ready&#x60;, then only the &#x60;generated_live_final&#x60; track will be included during playback. | [optional] |
16
17
  | **language_code** | **String** | The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, &#x60;en&#x60; for English or &#x60;en-US&#x60; for the US version of English. This parameter is only set for &#x60;text&#x60; type and &#x60;subtitles&#x60; text type tracks. | [optional] |
17
18
  | **name** | **String** | The name of the track containing a human-readable description. The hls manifest will associate a subtitle text track with this value. For example, the value is \&quot;English\&quot; for subtitles text track for the &#x60;language_code&#x60; value of &#x60;en-US&#x60;. This parameter is only set for &#x60;text&#x60; type and &#x60;subtitles&#x60; text type tracks. | [optional] |
18
19
  | **closed_captions** | **Boolean** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is only set for &#x60;text&#x60; type and &#x60;subtitles&#x60; text type tracks. | [optional] |
@@ -34,6 +35,7 @@ instance = MuxRuby::Track.new(
34
35
  max_channels: null,
35
36
  max_channel_layout: null,
36
37
  text_type: null,
38
+ text_source: null,
37
39
  language_code: null,
38
40
  name: null,
39
41
  closed_captions: null,