Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 810 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 810 Bytes

Whispex

An Elixir wrapper for the OpenAI/Whisper command line interface.

Installation

If available in Hex, the package can be installed by adding whispex to your list of dependencies in mix.exs:

def deps do
  [
    {:whispex, "~> 0.1.0"}
  ]
end

Example

import Whispex
use Whispex.Options

command =
  Whispex.new_command
  |> add_input_file("/path/to/input.mp4")
  |> add_file_option(option_language("English"))

{:ok, "[00:00.000 --> 00:05.000]  shouldn't cover your old well before you dig the new one.\n"} = execute(command)

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/whispex.