Email and MIME Modules
email.mime.audio
Creates legacy MIME audio parts. MIMEAudio can infer certain recognized formats, or callers can specify a subtype explicitly. An explicit subtype labels data rather than proving its validity; the example uses a synthetic byte payload without playing audio.
Formal Syntax & Structure
python syntaxpython
import email.mime.audioReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from email.mime.audio import MIMEAudiopart = MIMEAudio(b"demo", _subtype="wav")print(part.get_content_type())