53 lines
893 B
Markdown
53 lines
893 B
Markdown
# Playback
|
|
|
|
A terminal-based audio player with synchronized transcript viewing and editing.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
make install
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
playback audio.mp3 # Auto-finds transcript (audio.srt)
|
|
playback audio.mp3 -t transcript.srt # Specify transcript
|
|
```
|
|
|
|
## Keybindings
|
|
|
|
| Key | Action |
|
|
|-----|--------|
|
|
| `space` | Play/Pause |
|
|
| `ctrl+j` | Focus transcript |
|
|
| `ctrl+k` | Focus waveform |
|
|
| `q` | Quit |
|
|
| `?` | Toggle help |
|
|
|
|
**Waveform (focused):**
|
|
- `h/l` or arrows: Seek 5s
|
|
- `H/L`: Seek 30s
|
|
|
|
**Transcript (focused):**
|
|
- `j/k`: Navigate cues
|
|
- `ctrl+d/u`: Jump 5 cues
|
|
- `g/G`: First/last cue
|
|
- `enter`: Seek audio to cue
|
|
- `i`: Edit in external editor
|
|
|
|
## Configuration
|
|
|
|
Config file: `~/.config/playback/config.json`
|
|
|
|
```json
|
|
{
|
|
"seek_step_ms": 5000,
|
|
"big_seek_step_ms": 30000,
|
|
"volume": 1.0,
|
|
"editor": "nvim"
|
|
}
|
|
```
|
|
|
|
Default editor is `vim`.
|