Skip to content

Commit

Permalink
Fix OpenAiAudioSpeechOptions speed description
Browse files Browse the repository at this point in the history
formatting
  • Loading branch information
uzhuraul authored and sobychacko committed Aug 19, 2024
1 parent 10e1e13 commit c2b6e85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public class OpenAiAudioSpeechOptions implements ModelOptions {
private AudioResponseFormat responseFormat;

/**
* The speed of the voice synthesis. The acceptable range is from 0.0 (slowest) to 1.0
* (fastest). Defaults to 1
* The speed of the voice synthesis. The acceptable range is from 0.25 (slowest) to
* 4.0 (fastest). Defaults to 1 (normal)
*/
@JsonProperty("speed")
private Float speed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public String getValue() {
* chosen model: 'alloy', 'echo', 'fable', 'onyx', 'nova', and 'shimmer'.
* @param responseFormat The format to audio in. Supported formats are mp3, opus, aac,
* and flac. Defaults to mp3.
* @param speed The speed of the voice synthesis. The acceptable range is from 0.0
* (slowest) to 1.0 (fastest).
* @param speed The speed of the voice synthesis. The acceptable range is from 0.25
* (slowest) to 4.0 (fastest).
*/
@JsonInclude(Include.NON_NULL)
public record SpeechRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The prefix `spring.ai.openai.audio.speech` is used as the property prefix that l
| spring.ai.openai.audio.speech.options.model | ID of the model to use. Only tts-1 is currently available. | tts-1
| spring.ai.openai.audio.speech.options.voice | The voice to use for the TTS output. Available options are: alloy, echo, fable, onyx, nova, and shimmer. | alloy
| spring.ai.openai.audio.speech.options.response-format | The format of the audio output. Supported formats are mp3, opus, aac, flac, wav, and pcm. | mp3
| spring.ai.openai.audio.speech.options.speed | The speed of the voice synthesis. The acceptable range is from 0.0 (slowest) to 1.0 (fastest). | 1.0
| spring.ai.openai.audio.speech.options.speed | The speed of the voice synthesis. The acceptable range is from 0.25 (slowest) to 4.0 (fastest). | 1.0
|====

NOTE: You can override the common `spring.ai.openai.base-url`, `spring.ai.openai.api-key`, `spring.ai.openai.organization-id` and `spring.ai.openai.project-id` properties.
Expand Down

0 comments on commit c2b6e85

Please sign in to comment.