Class: Rev::TranscriptionOptions
- Inherits:
-
InputOptions
- Object
- ApiSerializable
- InputOptions
- Rev::TranscriptionOptions
- Defined in:
- lib/rev-api/models/order_request.rb
Overview
Transcription options. This section contains the input media that must be transferred to our servers using a POST to /inputs, and are referenced using the URIs returned by that call. We also support external links.
Constant Summary collapse
- OUTPUT_FILE_FORMATS =
All supported output file formats
{ :ms_word => 'MS Word', :json => 'JSON', :text => 'Text', :pdf => 'Pdf' }
Instance Attribute Summary collapse
-
#output_file_formats ⇒ Object
readonly
Optional, array of file formats the captions should be delivered as.
-
#timestamps ⇒ Object
readonly
Optional, should we include timestamps?.
-
#verbatim ⇒ Object
readonly
Optional, should we transcribe the provided files verbatim? If true, all filler words (i.e. umm, huh) will be included.
Attributes inherited from InputOptions
Instance Method Summary collapse
-
#initialize(inputs, info = {}) ⇒ TranscriptionOptions
constructor
A new instance of TranscriptionOptions.
Methods inherited from ApiSerializable
Constructor Details
#initialize(inputs, info = {}) ⇒ TranscriptionOptions
Returns a new instance of TranscriptionOptions.
128 129 130 131 132 |
# File 'lib/rev-api/models/order_request.rb', line 128 def initialize(inputs, info = {}) super inputs, info raise(ArgumentError, "invalid format(s)") unless validate_output_formats(info[:output_file_formats]) (inputs) end |
Instance Attribute Details
#output_file_formats ⇒ Object (readonly)
Optional, array of file formats the captions should be delivered as. default is MS Word
106 107 108 |
# File 'lib/rev-api/models/order_request.rb', line 106 def output_file_formats @output_file_formats end |
#timestamps ⇒ Object (readonly)
Optional, should we include timestamps?
113 114 115 |
# File 'lib/rev-api/models/order_request.rb', line 113 def @timestamps end |
#verbatim ⇒ Object (readonly)
Optional, should we transcribe the provided files verbatim? If true, all filler words (i.e. umm, huh) will be included.
110 111 112 |
# File 'lib/rev-api/models/order_request.rb', line 110 def verbatim @verbatim end |