All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchableinc.openai.audio.CreateTranscriptionRequest Maven / Gradle / Ivy

The newest version!
package com.launchableinc.openai.audio;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

/**
 * A request for OpenAi to create transcription based on an audio file All fields except model are
 * optional
 * 

* https://platform.openai.com/docs/api-reference/audio/create */ @Builder @NoArgsConstructor @AllArgsConstructor @Data public class CreateTranscriptionRequest { /** * The name of the model to use. */ @NonNull String model; /** * An optional text to guide the model's style or continue a previous audio segment. The prompt * should match the audio language. */ String prompt; /** * The format of the transcript output, in one of these options: json or verbose_json */ @JsonProperty("response_format") String responseFormat; /** * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more * random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, * the model will use log probability to automatically increase the temperature until certain * thresholds are hit. */ Double temperature; /** * The language of the input audio. Supplying the input language in ISO-639-1 format will improve * accuracy and latency. */ String language; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy