public class WhisperClient extends Object
| Constructor and Description |
|---|
WhisperClient() |
| Modifier and Type | Method and Description |
|---|---|
static com.litongjava.model.http.response.ResponseVo |
transcriptions(File file,
String responseFormat) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(File file,
String responseFormat,
String prompt) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String filename,
byte[] audioBytes,
String responseFormat)
Transcribes the given audio file using the default API key from environment
variables.
|
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String filename,
byte[] audioBytes,
String responseFormat,
String format) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String apiKey,
File file,
String responseFormat) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String apiKey,
File file,
String responseFormat,
String prompt) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String apiKey,
String filename,
byte[] audioBytes,
String responseFormat)
Transcribes the given audio file using the provided API key.
|
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String apiKey,
String filename,
byte[] audioBytes,
String responseFormat,
String prompt) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String baseUrl,
String apiKey,
File file,
String responseFormat) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String baseUrl,
String apiKey,
File file,
String responseFormat,
String prompt) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String baseUrl,
String apiKey,
String filename,
byte[] audioBytes,
String responseFormat)
Transcribes the given audio file using the provided base URL and API key.
|
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String baseUrl,
String apiKey,
String filename,
byte[] audioBytes,
WhisperTranscriptionsRequest entity) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String baseUrl,
String apiKey,
String filename,
okhttp3.RequestBody fileBody,
String responseFormat) |
static com.litongjava.model.http.response.ResponseVo |
transcriptions(String baseUrl,
String apiKey,
String filename,
okhttp3.RequestBody fileBody,
WhisperTranscriptionsRequest requestEntity) |
public static com.litongjava.model.http.response.ResponseVo transcriptions(String filename, byte[] audioBytes, String responseFormat)
filename - the name of the audio fileaudioBytes - the content of the audio file in bytesresponseFormat - the desired response format (e.g., json)public static com.litongjava.model.http.response.ResponseVo transcriptions(String filename, byte[] audioBytes, String responseFormat, String format)
public static com.litongjava.model.http.response.ResponseVo transcriptions(File file, String responseFormat)
public static com.litongjava.model.http.response.ResponseVo transcriptions(File file, String responseFormat, String prompt)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String apiKey, File file, String responseFormat)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String apiKey, File file, String responseFormat, String prompt)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String apiKey, String filename, byte[] audioBytes, String responseFormat)
apiKey - the API key to use for authenticationfilename - the name of the audio fileaudioBytes - the content of the audio file in bytesresponseFormat - the desired response format (e.g., json)public static com.litongjava.model.http.response.ResponseVo transcriptions(String apiKey, String filename, byte[] audioBytes, String responseFormat, String prompt)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String baseUrl, String apiKey, String filename, byte[] audioBytes, String responseFormat)
baseUrl - the base URL for the APIapiKey - the API key for authenticationfilename - the name of the audio fileaudioBytes - the content of the audio file in bytesresponseFormat - the desired response format (e.g., json)public static com.litongjava.model.http.response.ResponseVo transcriptions(String baseUrl, String apiKey, String filename, byte[] audioBytes, WhisperTranscriptionsRequest entity)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String baseUrl, String apiKey, File file, String responseFormat)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String baseUrl, String apiKey, File file, String responseFormat, String prompt)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String baseUrl, String apiKey, String filename, okhttp3.RequestBody fileBody, String responseFormat)
public static com.litongjava.model.http.response.ResponseVo transcriptions(String baseUrl, String apiKey, String filename, okhttp3.RequestBody fileBody, WhisperTranscriptionsRequest requestEntity)
Copyright © 2026. All rights reserved.