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(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 apiKey,
File file,
String responseFormat) |
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 baseUrl,
String apiKey,
File file,
String responseFormat) |
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,
String responseFormat,
okhttp3.RequestBody fileBody) |
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(File file, String responseFormat)
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, 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 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, File file, String responseFormat)
Copyright © 2025. All rights reserved.