soundfiles

Tools for interacting with soundfiles.

class Say(text: str, voice: str | None)

Bases: object

Wrapper for OSX say command.

>>> from supriya.soundfiles import Say
>>> say = Say("Hello World!", voice="Daniel")
>>> supriya.play(say)
__annotate_func__()
__post_init__()
async __render__(output_file_path: PathLike | None = None, render_directory_path: PathLike | None = None, **kwargs) tuple[Path, int]
load(path: Path) tuple[tuple[tuple[float, ...], ...], int]

Load an audio file as 2d array of floats, one row per channel.

This uses the audioread library under the hood.

Return the audio data and the sample rate.