Optional connOptions: APIConnectOptionsThe error that ended the retry loop; set once the stream has stopped recognizing for good.
Send text the agent is speaking, as it plays. Requires enableAgentTextInput.
Pass endOfSegment: true once the agent's turn ends or is interrupted. Text sent while
the connection is not open is dropped.
Optional end
An instance of a speech-to-text stream, as an asynchronous iterable iterator.
Example: Looping through frames
Remarks
This class is abstract, and as such cannot be used directly. Instead, use a provider plugin that exports its own child SpeechStream class, which inherits this class's methods.