npm.io
1.5.1 • Published yesterdayCLI

audio-training

Licence
MIT
Version
1.5.1
Deps
21
Size
52 kB
Vulns
1
Weekly
0

Audio Tools

Some tools to work with movie and audio files. This allows you to use either AssemblyAI or Deepgram to diarize your audio, and extract ust the portions of speech from a set of video or audio files for a given speaker.

Usage

npx audio-training --help
Options:
--help        Show help                                                                                  [boolean]
--version     Show version number                                                                        [boolean]
-f, --input       Input file or directory                                            [string] [required] [default: ""]
-v, --verbose     Verbose logging                                                            [string] [default: false]
-m, --mergeAudio  Merge all audio files in each speaker directory after processing           [boolean] [default: true]
-a, --apiKey                                                                                    [string] [default: ""]
--language
[choices: "zh", "zh-CN", "zh-TW", "da", "nl", "en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "nl", "fr", "fr-CA",
"de", "hi", "hi-Latn", "id", "it", "ja", "ko", "no", "pl", "pt", "pt-BR", "pt-PT", "ru", "es", "es-419", "sv", "ta", "
tr", "uk"] [default: "en-US"]
--client                                               [choices: "deepgram", "assemblyai"] [default: "assemblyai"]

Example

npx audio-training --input my-video-file.mp4 --apiKey my_assemblyai_api_key --client assemblyai

It can also work recursively on a directory of files:

npx audio-training --input my-directory-of-files --apiKey my_assemblyai_api_key --client assemblyai

Keywords