Add license and separate out phonemes2ids library

This commit is contained in:
Michael Hansen 2021-08-10 15:12:08 -04:00
commit f38d847510
5 changed files with 691 additions and 335 deletions

View file

@ -1,5 +1,6 @@
import argparse
import csv
import os
import sys
from . import Phonemizer
@ -64,6 +65,9 @@ def main():
csv_writer = None
reader = sys.stdin
if os.isatty(sys.stdin.fileno()):
print("Reading text from stdin...", file=sys.stderr)
for line in reader:
if args.csv:
text = line[-1]