summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-09 09:24:54 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-09 09:24:54 -0500
commit921b613ed8af5f87c247d92406f9ff4e42a5aed7 (patch)
tree1109d78ffd25a61a2f5cfc08e8d5d8b0d6834df7 /roles
parentc2d647a3cb3a6d456684bcdce327954214352959 (diff)
downloademacsconf-ansible-921b613ed8af5f87c247d92406f9ff4e42a5aed7.tar.xz
emacsconf-ansible-921b613ed8af5f87c247d92406f9ff4e42a5aed7.zip
Add kitty, kitty-term
Diffstat (limited to '')
-rwxr-xr-xroles/caption/templates/process-captions.py2
-rw-r--r--roles/edit/tasks/main.yml15
-rw-r--r--roles/obs/tasks/main.yml2
-rw-r--r--roles/obs/templates/bashrc1
-rw-r--r--roles/obs/templates/scenes.json4
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": {