![](/img/trans.png)
[英]Preventing Windows Speech Recognition from recognizing computer audio with Dragonfly?
[英]get text from dragonfly speech recogtion engine
我想讓語音識別引擎蜻蜓識別文本並使用 python 獲取文本。 已嘗試使用 natlink,但我想制作一個服務器基礎應用程序並僅識別文本
您必須使用 Natlink 或 Windows 語音識別。 沒有識別引擎就無法識別文本。 如果您想獲得完整的識別文本,請使用 Dictation 元素創建一個命令,其中沒有其他內容。 將它映射到一個函數操作,該操作可以對結果執行任何您想要的操作。 像這樣:
def myfunction(mycommand):
mycommand = str(mycommand)
'''do something ... '''
class MyRule(MappingRule):
mapping = {
"<mycommand>": Function(myfunction)
}
extras = [ Dictation("mycommand") ]
defaults = {"mycommand": None}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.