Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
/ w2o Public archive

word2odio: a routine helper for english word learners, to convert from a specific wordlist to a clip of audio. #mini_program #wechat

License

Notifications You must be signed in to change notification settings

GaryLz/w2o

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

w2o

word2odio: a routine helper to english word learners, from a specific wordlist to a clip of audio. #mini_program #wechat

[TOC]

v1.0

Note: Not a mini pg, it's a python program rather.

about

dirs:

  • daily-vocab(dest_dir: audio files)
  • w2o(tar_dir: .py files):

main files

  • api.py
  • wordlist.py
  • w2o.py(main)
  • json_formatter.py

Directory general structure:

1. w2o:
.
├── LICENSE
├── README.md
├── __pycache__
│   ├── api.cpython-37.pyc
│   ├── json_formatter.cpython-37.pyc
│   └── wordlist.cpython-37.pyc
├── api.py
├── foo.py
├── json_formatter.py
├── w2o.py
├── wordlist.py
└── wordlist_input.txt

1 directory, 11 files


2. daily-vocab:
'generating EXAMPLE_DIR ...'
.
├── ELC (DIR_EXAMPLE)
│   ├── ELC.json
│   └── ELC.mp3
│   └── ELC.txt

dependencies

In my case, env: Mac-MacOS Majave 10.14.6 (18G103), Homebrew.

NEEDED to be installed successfully before the program's running.

  • pydub.AudioSegment
pip3 install pydub
  • ffmpeg or libav
brew install ffmpeg libavcodec-extra

dev_log

to-do:

  • bugs:

    • shared data problem of the same wordlist in loops

      R: class wordlist() cannot be initialized as empty in loops. #assign-as-empty-directly

    • program goes breakdown if no audio of a "maybe-wrong" word available in youdao.com

      R: program went crash when getting an invalid url. #try-except

  • features:

    • audio ouput based on files, without inputting words on console(supported format: .txt)

      input_files: ./wordlist_input.txt

About

word2odio: a routine helper for english word learners, to convert from a specific wordlist to a clip of audio. #mini_program #wechat

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages