reset config
add single preset, apply to notes directly, then close run from browser/menu run from editor
add random preset, run from browser/menu run from editor
coverage run -m pytest
coverage html
coverage erase
python -m http.server --bind :: 8000
- install Python 3.11 for windows
- install ffmpeg
- create python virtual env
- create virtualenv
cd c:\dev\python-envpython -m venv anki-hyper-ttsC:\dev\python-env\anki-hyper-tts\Scripts\activatecd C:\dev\python\anki-hyper-ttsc:\dev\python-env\anki-hyper-tts\Scripts\python.exe -m pip install --upgrade pippip install -r requirements.txtpip install -r requirements.windows.txt
- install requirements.txt and requirements.windows.txt
- directory junction for anki addon:
mklink /j C:\Users\Luc\AppData\Roaming\Anki2\addons21\anki-hyper-tts C:\dev\python\anki-hyper-tts
C:\dev\python-env\anki-hyper-tts\Scripts\activate
set PATH=C:\Users\Luc\AppData\Local\Programs\Anki;C:\Program Files\ffmpeg;%PATH%
created this way
cat ~/secrets/cloudlanguagetools/post_deploy_tts_prod.sh | sed 's/export/set/g'
cat ~/secrets/hypertts/hypertts_services_keys.sh
execute ~/secrets/hypertts/hypertts_windows.bat
cd C:\dev\python\anki-hyper-tts
pytest test_tts_services.py -k test_windows
- check python3 version, should be 3.9
- install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)", then follow the other steps brew install libmagicbrew install ffmpeg- create virtual env:
mkdir python-env python3 -m venv anki-hyper-ttsmkdir -p ~/python- sync hypertts files:
rsync -rv ~/python/anki-hyper-tts/ anki-dev-mac:~/python/anki-hyper-tts/ . python-env/anki-hyper-tts/bin/activatepip install --upgrade pippip install -r requirements.txt- copy
~/secrets/hypertts/clt_tts_prod.shandhypertts_services_keys.sh
- install extra voices, in System settings under Accessibility there is an area for Spoken Content. When you click on System voice there is an option to Manage Voices and you can download more there.
https://docs.ankiweb.net/platform/mac/display-issues.html
echo software > ~/Library/Application\ Support/Anki2/gldriver6
export HYPER_TTS_DEBUG_LOGGING=file
export HYPER_TTS_DEBUG_LOGFILE=`pwd`/hypertts.log
open /Applications/Utilities/Anki.app