Skip to content
/ phns Public

Transcript text into phonemes with help of cmudict and some heuristics

License

Notifications You must be signed in to change notification settings

DeepLenin/phns

Repository files navigation

phns

A friendly, lightweight, graph-based transcriber and scorer for deep Lening (but not only) applications. Based on cmudict and English heuristics.

  • Lightweight. Depending only on numpy and scipy.
  • Fast. Because of graph-nature of algorithm - it can produce transcription variants much faster than through straight combinatory
  • Smart. Includes viterbi algorithm to find best way through your predictions.
import phns

graph = phns.from_text("Hello world!")
for pronounciation in graph.to_list():
    print("-".join([str(phn) for phn in pronounciation]))

# =>
# hh-eh-l-ow-w-er-l-d
# hh-ah-l-ow-w-er-l-d
# hh-l-ow-w-er-l-d

Work still in progress

About

Transcript text into phonemes with help of cmudict and some heuristics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages