An Elixir wrapper for the OpenAI/Whisper command line interface.
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
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.