diff options
Diffstat (limited to 'roles')
-rwxr-xr-x | roles/caption/templates/process-captions.py | 2 | ||||
-rw-r--r-- | roles/edit/tasks/main.yml | 15 | ||||
-rw-r--r-- | roles/obs/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/obs/templates/bashrc | 1 | ||||
-rw-r--r-- | roles/obs/templates/scenes.json | 4 |
5 files changed, 20 insertions, 4 deletions
diff --git a/roles/caption/templates/process-captions.py b/roles/caption/templates/process-captions.py index 1b6515c..9b345fe 100755 --- a/roles/caption/templates/process-captions.py +++ b/roles/caption/templates/process-captions.py @@ -141,7 +141,7 @@ def generate_captions(work): audio = whisper.load_audio(work['audio']) if TRIM_AUDIO: audio = whisper.pad_or_trim(audio) - result = model.transcribe(audio, verbose=True) + result = model.transcribe(audio, verbose=True, language="en") result = clean_up_timestamps(result) with open(new_file, 'w') as vtt: whisper.utils.write_vtt(result['segments'], file=vtt) diff --git a/roles/edit/tasks/main.yml b/roles/edit/tasks/main.yml index f864b23..9419f92 100644 --- a/roles/edit/tasks/main.yml +++ b/roles/edit/tasks/main.yml @@ -14,7 +14,20 @@ (when packages (package-refresh-contents) (mapc #'package-install packages))))" - +- name: Add alias for Emacsconf + lineinfile: + line: alias emacsconf="emacsclient -c -a emacs" + dest: "~{{ emacsconf_user }}/.bashrc" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + create: yes +- name: Set timezone + lineinfile: + line: export TZ={{ emacsconf_timezone }} + dest: "~{{ emacsconf_user }}/.bashrc" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + create: yes - name: Set up Emacs configuration for interactive editing template: src: emacsconf-edit.el diff --git a/roles/obs/tasks/main.yml b/roles/obs/tasks/main.yml index ab94878..3ee7330 100644 --- a/roles/obs/tasks/main.yml +++ b/roles/obs/tasks/main.yml @@ -16,6 +16,8 @@ - ffmpeg - pulseaudio - jackd2 + - kitty + - kitty-terminfo - alsa-utils - dbus-x11 - obs-studio diff --git a/roles/obs/templates/bashrc b/roles/obs/templates/bashrc index 4d65cbd..eecc39a 100644 --- a/roles/obs/templates/bashrc +++ b/roles/obs/templates/bashrc @@ -116,5 +116,6 @@ alias play=track-mpv alias qa-louder="pactl set-sink-volume {{ item.id }}-qa +5% " alias qa-quieter="pactl set-sink-volume {{ item.id }}-qa -5% " alias qa-vol="pactl set-sink-volume {{ item.id }}-qa " +export TZ={{ emacsconf_timezone }} export PATH=$PATH:$HOME/bin export DISPLAY=${DISPLAY:-:{{ item.vnc_id }}} diff --git a/roles/obs/templates/scenes.json b/roles/obs/templates/scenes.json index 5790efd..93a0592 100644 --- a/roles/obs/templates/scenes.json +++ b/roles/obs/templates/scenes.json @@ -1,6 +1,6 @@ { - "current_program_scene": "Video audio and screen", - "current_scene": "Video audio and screen", + "current_program_scene": "All track audio and screen", + "current_scene": "All track audio and screen", "current_transition": "Fade", "groups": [], "modules": { |