Method: AskChatgpt::VoiceFlow::Voice#initialize
- Defined in:
- lib/ask_chatgpt/voice.rb
#initialize ⇒ Voice
Returns a new instance of Voice.
72 73 74 75 76 77 78 79 |
# File 'lib/ask_chatgpt/voice.rb', line 72 def initialize @messages = [] @wanna_quit = false @duration = (AskChatGPT.voice_max_duration.presence || 10).to_i @ffmpeg_wait_duration = 0.5 @executing = true @spinner = nil end |