Install
openclaw skills install @pe1984/english-phonetics-batch批量为英文单词添加、检查和标注美式国际音标(IPA)。支持从文本文件批量导入单词,自动查询每个单词的美式发音音标,验证现有音标正确性,并输出格式化结果。
openclaw skills install @pe1984/english-phonetics-batch当以下情况时使用此 Skill:
# Basic bulk processing (one word per line)
cd scripts/
python english_phonetics_batch.py input_words.txt output_with_phonetics.txt
# Check and fix existing file with corrupted phonetics (question marks from encoding errors)
python english_phonetics_batch.py input.txt output.txt --check
# Output as CSV for spreadsheets
python english_phonetics_batch.py words.txt output.csv --format csv
# Large vocabulary list - increase delay for safety, more retries
python english_phonetics_batch.py words.txt output.txt --delay 500 --retries 5
import sys
sys.path.insert(0, 'path/to/english-phonetics-batch/scripts')
from english_phonetics_batch import PhoneticsBatch
processor = PhoneticsBatch()
results = processor.process_words(["apple", "banana", "cherry"])
processor.save_results(results, "output.txt", format="text")
apple /ˈæpl/ noun
banana /bəˈnænə/ noun
cherry /ˈtʃeri/ noun
word,phonetic_american,part_of_speech,is_valid
apple,/ˈæpl/,noun,True
banana,/bəˈnænə/,noun,True
| Word | American IPA | Part of Speech |
|---|---|---|
| apple | /ˈæpl/ | noun |
| banana | /bəˈnænə/ | noun |
requests library (pip install requests)pip install requests
No other installation required - just clone and use.
Created for bulk English vocabulary phonetic transcription with American English IPA.