Ogg Speex

Read and write Ogg Speex comments.

This module handles Speex files wrapped in an Ogg bitstream. The first Speex stream found is used.

Read more about Ogg Speex at http://www.speex.org/. This module is based on the specification at http://www.speex.org/manual2/node7.html and clarifications after personal communication with Jean-Marc, http://lists.xiph.org/pipermail/speex-dev/2006-July/004676.html.

exception mutagen.oggspeex.error

Bases: mutagen.ogg.error

exception mutagen.oggspeex.OggSpeexHeaderError

Bases: mutagen.oggspeex.error

class mutagen.oggspeex.OggSpeex(filename)

Bases: mutagen.ogg.OggFileType

An Ogg Speex file.

info = None

A OggSpeexInfo

tags = None

A VCommentDict

class mutagen.oggspeex.OggSpeexInfo(fileobj)

Ogg Speex stream information.

length = 0

file length in seconds, as a float

channels = 0

number of channels

bitrate = 0

nominal bitrate in bits per second.

The reference encoder does not set the bitrate; in this case, the bitrate will be 0.