Class: Typecast::Models::OutputStream
- Inherits:
-
Object
- Object
- Typecast::Models::OutputStream
- Defined in:
- lib/typecast/models.rb
Instance Attribute Summary collapse
-
#audio_format ⇒ Object
readonly
Returns the value of attribute audio_format.
-
#audio_pitch ⇒ Object
readonly
Returns the value of attribute audio_pitch.
-
#audio_tempo ⇒ Object
readonly
Returns the value of attribute audio_tempo.
-
#remove_silence_ms ⇒ Object
readonly
Returns the value of attribute remove_silence_ms.
-
#target_lufs ⇒ Object
readonly
Returns the value of attribute target_lufs.
Instance Method Summary collapse
-
#initialize(audio_pitch: nil, audio_tempo: nil, audio_format: nil, target_lufs: nil, remove_silence_ms: nil) ⇒ OutputStream
constructor
A new instance of OutputStream.
- #to_h ⇒ Object
Constructor Details
#initialize(audio_pitch: nil, audio_tempo: nil, audio_format: nil, target_lufs: nil, remove_silence_ms: nil) ⇒ OutputStream
Returns a new instance of OutputStream.
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/typecast/models.rb', line 45 def initialize(audio_pitch: nil, audio_tempo: nil, audio_format: nil, target_lufs: nil, remove_silence_ms: nil) unless remove_silence_ms.nil? || (remove_silence_ms.is_a?(Integer) && (0..1000).cover?(remove_silence_ms)) raise ArgumentError, "remove_silence_ms must be an integer between 0 and 1000" end @remove_silence_ms = remove_silence_ms @audio_pitch = audio_pitch @audio_tempo = audio_tempo @audio_format = audio_format @target_lufs = target_lufs end |
Instance Attribute Details
#audio_format ⇒ Object (readonly)
Returns the value of attribute audio_format.
43 44 45 |
# File 'lib/typecast/models.rb', line 43 def audio_format @audio_format end |
#audio_pitch ⇒ Object (readonly)
Returns the value of attribute audio_pitch.
43 44 45 |
# File 'lib/typecast/models.rb', line 43 def audio_pitch @audio_pitch end |
#audio_tempo ⇒ Object (readonly)
Returns the value of attribute audio_tempo.
43 44 45 |
# File 'lib/typecast/models.rb', line 43 def audio_tempo @audio_tempo end |
#remove_silence_ms ⇒ Object (readonly)
Returns the value of attribute remove_silence_ms.
43 44 45 |
# File 'lib/typecast/models.rb', line 43 def remove_silence_ms @remove_silence_ms end |
#target_lufs ⇒ Object (readonly)
Returns the value of attribute target_lufs.
43 44 45 |
# File 'lib/typecast/models.rb', line 43 def target_lufs @target_lufs end |