langchain_community.utilities.nvidia_riva.AudioStream¶
- class langchain_community.utilities.nvidia_riva.AudioStream(maxsize: int = 0)[source]¶
A message containing streaming audio.
Initialize the queue.
Attributes
completeIndicate if the audio stream has hungup and been processed.
emptyIndicate in the input stream buffer is empty.
hungupIndicate if the audio stream has hungup.
runningIndicate if the ASR stream is running.
outputhangupuser_talkinguser_quietMethods
__init__([maxsize])Initialize the queue.
aclose([timeout])Async send the hangup signal.
aput(item[, timeout])Async put a new item into the queue.
close([timeout])Send the hangup signal.
put(item[, timeout])Put a new item into the queue.
register(responses)Drain the responses from the provided iterator and put them into a queue.
- Parameters
maxsize (int) –
- __init__(maxsize: int = 0) None[source]¶
Initialize the queue.
- Parameters
maxsize (int) –
- Return type
None
- async aclose(timeout: Optional[int] = None) None[source]¶
Async send the hangup signal.
- Parameters
timeout (Optional[int]) –
- Return type
None
- async aput(item: Union[bytes, SentinelT], timeout: Optional[int] = None) None[source]¶
Async put a new item into the queue.
- Parameters
item (Union[bytes, SentinelT]) –
timeout (Optional[int]) –
- Return type
None
- close(timeout: Optional[int] = None) None[source]¶
Send the hangup signal.
- Parameters
timeout (Optional[int]) –
- Return type
None