public class WebsocketsAudioTranscriptionsClient extends BaseWebsocketsClient
CLOSE_TIMEOUT_SECONDS, executorService, listener, logger, objectMapper, ws| Modifier | Constructor and Description |
|---|---|
protected |
WebsocketsAudioTranscriptionsClient(okhttp3.OkHttpClient client,
String wsHost,
WebsocketsAudioTranscriptionsCreateReq req) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
buildUrl(String wsHost) |
protected BaseCallbackHandler |
getCallbackHandler() |
protected void |
handleEvent(okhttp3.WebSocket ws,
String text) |
void |
inputAudioBufferAppend(byte[] data) |
void |
inputAudioBufferAppend(String data) |
void |
inputAudioBufferClear() |
void |
inputAudioBufferComplete() |
void |
transcriptionsUpdate(TranscriptionsUpdateEventData data) |
close, parseEventType, sendEventprotected WebsocketsAudioTranscriptionsClient(okhttp3.OkHttpClient client,
String wsHost,
WebsocketsAudioTranscriptionsCreateReq req)
public void transcriptionsUpdate(TranscriptionsUpdateEventData data)
public void inputAudioBufferAppend(String data)
public void inputAudioBufferAppend(byte[] data)
public void inputAudioBufferClear()
public void inputAudioBufferComplete()
protected BaseCallbackHandler getCallbackHandler()
getCallbackHandler in class BaseWebsocketsClientprotected void handleEvent(okhttp3.WebSocket ws,
String text)
handleEvent in class BaseWebsocketsClientCopyright © 2025. All rights reserved.