Class: AudioBookCreator::SpeakerDef
- Inherits:
-
Object
- Object
- AudioBookCreator::SpeakerDef
- Defined in:
- lib/audio_book_creator/speaker_def.rb
Instance Attribute Summary collapse
-
#bit_rate ⇒ Object
Returns the value of attribute bit_rate.
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#max_hours ⇒ Object
split on this hour mark.
-
#rate ⇒ Object
Returns the value of attribute rate.
-
#regen_audio ⇒ Object
Returns the value of attribute regen_audio.
-
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
-
#voice ⇒ Object
currently like the following voices: Vicki # 10 Serena # 8 UK Allison # ? (ok) Moira # 7 Irish Fiona # 5 Scottish Kate # 4 UK Susan # 2 Zosia # 0 Poland Angelica # 0 Mexican? Paulina # 0 Mexican.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SpeakerDef
constructor
A new instance of SpeakerDef.
Constructor Details
#initialize(options = {}) ⇒ SpeakerDef
Returns a new instance of SpeakerDef.
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/audio_book_creator/speaker_def.rb', line 25 def initialize( = {}) .each { |n, v| public_send("#{n}=", v) } # for speaking the chapter @voice ||= "Vicki" @rate ||= 280 # for binding the book @channels ||= 1 @bit_rate ||= 32 @max_hours ||= 7 @sample_rate ||= 22_050 end |
Instance Attribute Details
#bit_rate ⇒ Object
Returns the value of attribute bit_rate.
21 22 23 |
# File 'lib/audio_book_creator/speaker_def.rb', line 21 def bit_rate @bit_rate end |
#channels ⇒ Object
Returns the value of attribute channels.
18 19 20 |
# File 'lib/audio_book_creator/speaker_def.rb', line 18 def channels @channels end |
#max_hours ⇒ Object
split on this hour mark
20 21 22 |
# File 'lib/audio_book_creator/speaker_def.rb', line 20 def max_hours @max_hours end |
#rate ⇒ Object
Returns the value of attribute rate.
16 17 18 |
# File 'lib/audio_book_creator/speaker_def.rb', line 16 def rate @rate end |
#regen_audio ⇒ Object
Returns the value of attribute regen_audio.
23 24 25 |
# File 'lib/audio_book_creator/speaker_def.rb', line 23 def regen_audio @regen_audio end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
22 23 24 |
# File 'lib/audio_book_creator/speaker_def.rb', line 22 def sample_rate @sample_rate end |
#voice ⇒ Object
currently like the following voices: Vicki # 10 Serena # 8 UK Allison # ? (ok) Moira # 7 Irish Fiona # 5 Scottish Kate # 4 UK Susan # 2 Zosia # 0 Poland Angelica # 0 Mexican? Paulina # 0 Mexican
15 16 17 |
# File 'lib/audio_book_creator/speaker_def.rb', line 15 def voice @voice end |