You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'opus-ruby'# Create new encoder with a sample rate of 48 kHz, a frame size of 480 bytes and 1 channelencoder=Opus::Encoder.new48000,480,1# Set the bitrate to 32 kbit/sencoder.bitrate=32000# Set the VBR rate to 0 (CBR)encoder.vbr_rate=0# Encode some raw audioencoded=encoder.encode(raw_audio,960)# Safely destroy encoderencoder.destroy
ruby test.rb
in <main>': undefined local variable or methodraw_audio' for main:Object (NameError)
I want record audio from system audio device
The text was updated successfully, but these errors were encountered:
test.rb
ruby test.rb
in
<main>': undefined local variable or method
raw_audio' for main:Object (NameError)I want record audio from system audio device
The text was updated successfully, but these errors were encountered: