AudioDataStream Class

Inheritance
builtins.object
AudioDataStream

Constructor

AudioDataStream(*args, **kwargs)

Methods

can_read_data
detach_input
from_wav_file_input
get_position
get_status
read_data
save_to_wav_file
save_to_wav_file_async
set_position

can_read_data

can_read_data(bytesRequested)

Parameters

bytesRequested
Required

detach_input

detach_input()

from_wav_file_input

static from_wav_file_input()

get_position

get_position()

get_status

get_status()

read_data

read_data(buffer)

Parameters

buffer
Required

save_to_wav_file

save_to_wav_file(fileName)

Parameters

fileName
Required

save_to_wav_file_async

save_to_wav_file_async(fileName)

Parameters

fileName
Required

set_position

set_position(pos)

Parameters

pos
Required

Attributes

cancellation_details

The reason why speech synthesis was cancelled.

Returns None if there was no cancellation.

properties

status

The audio data stream status