Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion plugins/stt/pocketsphinx-stt/g2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess
import tempfile
import logging
import collections
from . import phonemeconversion


Expand Down Expand Up @@ -70,7 +71,9 @@ def execute(executable, fst_model, input, is_file=False, nbest=None):
if word not in result:
result[word] = []
result[word].append(pronounciation)
return result

results = collections.OrderedDict(sorted(result.items()))
return results


class PhonetisaurusG2P(object):
Expand Down