Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `raw_audio' for main:Object (NameError) #3

Open
tablecell opened this issue Dec 20, 2015 · 0 comments

Comments

@tablecell
Copy link

test.rb

require 'opus-ruby'

# Create new encoder with a sample rate of 48 kHz, a frame size of 480 bytes and 1 channel
encoder = Opus::Encoder.new 48000, 480, 1
# Set the bitrate to 32 kbit/s
encoder.bitrate = 32000
# Set the VBR rate to 0 (CBR)
encoder.vbr_rate = 0

# Encode some raw audio
encoded = encoder.encode(raw_audio, 960)

# Safely destroy encoder
encoder.destroy

ruby test.rb
in <main>': undefined local variable or methodraw_audio' for main:Object (NameError)

I want record audio from system audio device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant