https://github.com/jonluca/audio-training
https://github.com/jonluca/audio-training
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonluca/audio-training
- Owner: jonluca
- Created: 2023-07-01T21:58:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T22:57:03.000Z (over 2 years ago)
- Last Synced: 2025-11-23T20:25:18.419Z (7 months ago)
- Language: TypeScript
- Size: 19.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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
```