question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No input on Mac at 48000 samplerate

See original GitHub issue

Hi many thanks for the library,

As the title says, the baseline:

import soundcard as sc

SAMPLERATE = 48000
m = sc.default_microphone()

with m.recorder(samplerate=SAMPLERATE) as mic:
    while True:
        data = mic.record()
        print(data)

only shows ‘-0’ when the system sample rate is 48000 (works fine with 44100). Mac OS is 10.14.6 Mojave. Any ideas? Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
0x0Lcommented, Dec 8, 2020

Yeah… the doc is awful 😃 I’m glad you did all the work and that I found your package I’ll give another try to narrow it down

1reaction
alfonsocv12commented, May 20, 2022

The problem is Microphone permission I just Solve this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annoying Resets on 48000 khz by Core Audio Audio Midi Setup
Several things can affect sample rate. Audio MIDI Setup does not save the sample rate, it shows what sample rate the audio system...
Read more >
How To Fix The Sample Rate of The Audio Input and Output ...
Here is how to fix the error "The Sample Rate of The Audio Input and ... The Audio Input and Output Device Do...
Read more >
MacBook Pro: How to Change the Sample Rate
MacBook Pro: How to Change the Sample Rate · 1. Click the Launchpad rocket ship icon in the dock of your MacBook Pro,...
Read more >
SL3 Channel Routing Issue when Set to 44100 Hz on Mac
Once highlighted, set the input sample rate to the default 48000 Hz and this should resolve the issue.
Read more >
Fix boot on OSX where input sample rate != output ... - GitHub
This can be fixed by opening Audio MIDI Setup in /Applications/Utilities and setting the sample rates to the same value for the input...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found