Skip to content

save("sound.wav", buf) seems to write with the wrong samplerate #88

@anandijain

Description

@anandijain
using PortAudio, SampledSignals, LibSndFile, FileIO
devs = PortAudio.devices()
mic = PortAudioStream("MacBook Pro Microphone", 1, 0)
buf = read(mic, 2s)
close(mic)
save("data/grooovin2.wav", buf)

This writes the wav file at 8khz for me. I'm not sure why, considering buf.samplerate == 48000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions