An open API service indexing awesome lists of open source software.

https://github.com/jonluca/audio-training


https://github.com/jonluca/audio-training

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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

```bash
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

```bash
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:

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