Liking cljdoc? Tell your friends :D

openai-clj.audio


create-transcriptionclj

(create-transcription params)
(create-transcription params options)

Transcribes audio into the input language.

Example:

(create-transcription {:file (clojure.java.io/file "path/to/audio.mp3")
                       :model "whisper-1"})

Response:

{
"text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale tosomething that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
}

Also see the OpenAI documentation

Transcribes audio into the input language.

  Example:
  ```
  (create-transcription {:file (clojure.java.io/file "path/to/audio.mp3")
                         :model "whisper-1"})
  ```

  Response:
  ```
  {
  "text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale tosomething that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
}

  ```

  Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/audio/createTranscription)
sourceraw docstring

create-translationclj

(create-translation params)
(create-translation params options)

Translates audio into English.

Example:

(create-translation {:file (clojure.java.io/file "path/to/file/german.m4a")
                     :model "whisper-1"})

Response:

{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}

Also see the OpenAI documentation

Translates audio into English.

  Example:
  ```
  (create-translation {:file (clojure.java.io/file "path/to/file/german.m4a")
                       :model "whisper-1"})
  ```

  Response:
  ```
  {
  "text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}

  ```

  Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/audio/createTranslation)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close