Skip to content

opus_file.bytes_per_sample missing  #103

@kdulep

Description

@kdulep
import wave
import pyogg

AUDIO_FILE = 'voice.ogg'
AUDIO_WAV = 'voice.wav'

opus_file = pyogg.OpusFile(AUDIO_FILE)
print(opus_file.bytes_per_sample)

wave_out = wave.open(AUDIO_WAV, "wb")
wave_out.setnchannels(opus_file.channels)
wave_out.setsampwidth(opus_file.bytes_per_sample)
wave_out.setframerate(opus_file.frequency)
wave_out.writeframes(opus_file.buffer)

AttributeError: 'OpusFile' object has no attribute 'bytes_per_sample'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions