https://github.com/ka-lip/anki_ogg2mp3
Fully automatic conversion for anki ogg notes
https://github.com/ka-lip/anki_ogg2mp3
Last synced: 4 months ago
JSON representation
Fully automatic conversion for anki ogg notes
- Host: GitHub
- URL: https://github.com/ka-lip/anki_ogg2mp3
- Owner: Ka-lip
- License: mit
- Created: 2023-11-07T01:45:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-09T06:54:45.000Z (over 1 year ago)
- Last Synced: 2023-11-09T07:32:37.255Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anki_ogg2mp3
## Fully automatic conversion for anki ogg notes.
Since iOS does not support ogg format, users of iOS cannot hear the sound on iOS devices.
This script can solve this issue. It also supports roll-back function in case the converted sound files are not satisfied.There are some other scripts doing the same thing. However, these scripts only handle the conversion of the ogg file. Users still need to replace the filename in notes in anki from *.ogg to *.mp3.
Please note that ogg files in the media folder which are not used in anki notes will not be converted.
## Requirements
- Anki
- Anki connect
- FFMpeg## Usage
Modify the settings in `ogg2mp3.py`
``` python
media_folder = r'C:\anki_userdata\main\collection.media'
ffmpeg_path = r'C:\ffmpeg\bin\ffmpeg.exe'
lang_code = 'Taiwanese' # 'Taiwanese' or 'Taiwanese_mandarin' or 'English'
```