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

No audio input on macOS #470

Closed
nicocrm opened this issue Feb 16, 2025 · 3 comments
Closed

No audio input on macOS #470

nicocrm opened this issue Feb 16, 2025 · 3 comments

Comments

@nicocrm
Copy link

nicocrm commented Feb 16, 2025

Package version
5.2.0

Environment

  • OS: macOS 15.3

Describe the bug

No audio input is captured. A sound file is produced of the correct duration but without any audio.

To Reproduce

Here is the configuration I used... I tried a few different options, commented out here, but they all produced the same result.

    await audioRecord.start(
      RecordConfig(
        // encoder: AudioEncoder.aacLc,
        // encoder: AudioEncoder.wav,
        // device: InputDevice(
        //     id: 'BuiltInMicrophoneDevice',
        //     label: 'BuiltInMicrophoneDevice'),
      ),
      path: filePath,
    );

Additional context

It works on the iOS simulator, and on chrome.
Only the macOS app does not capture any input.
I used another library (flutter_sound) and it worked OK, but I would prefer using this one as it has less dependencies.

@llfbandit
Copy link
Owner

Did you tried with the example project?
Everything is fine on my side...

@nicocrm
Copy link
Author

nicocrm commented Feb 16, 2025

It worked fine with the example project! My bad, didn't see that one at first. So it must be something specific to my project, I will play with it and compare to find out what. Thank you for looking into it.

@nicocrm nicocrm closed this as completed Feb 16, 2025
@nicocrm
Copy link
Author

nicocrm commented Feb 17, 2025

Found it, I was missing the "com.apple.security.device.audio-input" key in the entitlements file. Weird that it was still pretending to record, just doing a blank.

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

2 participants