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

commonMain.com.aallam.openai.client.Audio.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta01
Show newest version
package com.aallam.openai.client

import com.aallam.openai.api.audio.*

/**
 * Learn how to turn audio into text.
 */
public interface Audio {

    /**
     * Transcribes audio into the input language.
     */
    public suspend fun transcription(request: TranscriptionRequest): Transcription

    /**
     * Translates audio into English.
     */
    public suspend fun translation(request: TranslationRequest): Translation

    /**
     * Generates audio from the input text.
     */
    public suspend fun speech(request: SpeechRequest): ByteArray
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy