sphinx4编程指南

所需积分/C币:21 2015-11-03 08:37:56 211KB PDF

sphinx4编程指南官方教程 官方描述:This tutorial shows you how to write Sphinx-4 applications. We will use the HelloWorld demo as an example to show how a simple application can be written. We will then proceed to a more complex example.
else System. out. printin("I can't hear what you said. \n")i edu. cmu sphinx. recognizer Recognizer edu. cmu. sphinx. result Result edu.cmusphinx. util. props. ConfigurationManager Recognizer Result Configurationmanager main( ConfigurationManager recognizer microphone lookup() allocate( microphone. startRecording ( Recognizer recognize() Result. getBestResultNoFiller() result deallocate( <property name="logLevel" value="WARNING"/> <property name="absoluteReamidth" value=l-1/> <property name="relativeBeamNidth" value="lE-80"/> <property name="wordInsercionProbability" value="1E-35"/> <property name="languageweight" value="8"7> <property name="frontend" value="epFrontEnd"/> <property name="recognizer value="recognizer"/ <property name="showCreations" value="false"/> <component name-"recognizer type=edu. cmu. sphinx. recognizer Recognizer> <property rame="decoder" value="decoder"/> propertylist i tors <item>accuracyTracker </item> xitem>speedTracker </item> tRack </propertylist> </component> t name= decode typ d decoder Decode <property rame="searchManager value="'searchManager"/> </ <component name=searchManager type="edu. cmu. sphinx. decoder, search. SimmpleBreadthFirstSearchManager"> property name="logMach i 1 logMath"/> <property name="linquist" value="flatLinguist"/> <property name=pruner n value=trivialPruner"/> <property rame=scorer value="threadedscorer"/> <prope=ty rame"activeListFactory value="activelist"/> </component> <component name=logMath type=edu. cmu sphinx. ut.il. TogMath"> rty name="logBase value="1.0001/> <property name="useAddTable" value="true"/> / component <component name-trivialfruneri type-edu. cmu sphinx. decoder pruner. SimplePruner/> component name="threadedscorer type=edu. cmmu. sphinx. decoder scorer. ThreadecAcousticscorer> <property name-"frontend" value"s(frontend"/> <property rame-"iscpuRelative" value-"true"/> <property name="numThreads" value="0"/> <property rame=minsccreablesPerThread" value="10"/> property name="scoreablesKeepFeature" value="true"/> </component < component name=activelist type="edu. cu. sphinx. decoder. search. PartitionActivelistFactory"< <property name-logMa-h value="logMath"/< <propety rame="absoluteBeamwidth' value="SabsoluteBeamwidth"/< Property rame-relativeBeamWidth value="s[relativeBeamwidth"/< </component< SabsoluteBeamWidth I srelativeBeamwidth) <component name="flatLinguist type=edu. cmu. sphinx. linguist. flat. FlatLirguist"> <property rame="logMach" value="logMath"/ <property rame="grammar value="isgfGrammar"/> <property rame="acous-icModel" value=wsj"/> <property rame=wordInsertionProbability value-siwordIrsertionProbabilityl"/> <property rame-languageNeight value="(languageWeight"/> /component> <component name-wisgfGrammar type=ledu. cmu sphinx.isapi, JSGEGrammar"> <property name=grammarLocation value="resource: /demo/sphinx/helloworld/"/> property ra diction lue-"dictionary"/ <property rame="grammarName" value-hello"/> <property name="logMath" value="logMath"/> </component> <component name-dictionar type=edu. cmu sphinx.linguist. dictionary. FastDic-ionary> Property name=dictionaryPath value= value="resource: /Wsu gau 13dCep 16k 40mel 130Hz 6800Hz/ dict/ cmudict 0.6d"/> <property name="fillerpath value="resource: /Wsu gau 13dcep 16k 40me1 130Hz 6800Hz/dict/fillerdi ct/ <property name="addsilEading Pronunciation" value=false"/> <property name="wordReplacement" value=<sil>/> </component> fillerdict <component. name=dictionary type=edu. cmu sphinx.linguist. dictionary. FastDic-ionary> <property name=dicticnaryPath value- value-"resource:/Wsu gau 13dcep 16k 40me1 130Hz 6800Hz/dict/cmudict 0.6d"/> name=wf-llerpath value="resource: /Wsu gau 13dCep 16k 40me1 130Hz 6800Hz/dict/fillerdi Property rame-addsilEndingPronunciation" value=false"/> <property rame="wordReplacement value=l<s-1>/> </component> WSu gau 13dCep 16k 40mel 130Hz 6800Hzjar hinx4/lib sphinx4/lib e frontend configuration <!--大x★★大★★★★★★★★大★x★★★★★★★★★★大x★★★★★★★★★★大xx★★★★★大★★★★x <component name=frontEnd type=edu. cmu sphinx. frontend Frontend> <propertylist name-"pipeline <item>microphone </item> <item>premphasizer </item> <item>windower </item> <item>fft </item> <item>melFilterBank </item> /item> <item>liveCMn </i-em> <item>featureExtraction </item> </propertylist> /c <!-一大大大大大大大大大大大大木大不大大大大大大大大大大大大大大大大大大大大大大大大大木大大大大大大内大大x一-> The live frontend confiquration !--大大大大大大大大大大大大大大大x大大大大大大大★大大大大大大大★大大大大大大大大x大大大大大大大大大大大x-一> < component name="epFrontEnd' type="edu. cmu sphinx. frontend FrontEnd"> propertylIst na pipeline Item>microphone </item> tem>speech assi fier </item> <item>speechMaker </item> <item>ronSpeechDataFilter </item> <item>premphasizer </item> <item>windower </item <item>fft </item> citem>melFilterBank </iter <item>dct </item> <item>livecmn </icem> <item>featureExtraction </item> ertylist> </component> speechclassifier speechMaker nonSpeechDataFilter <component name=speechClassifier type=edu. cmu sphinx. frontend endpoint Speech Classifier> property rame="threshold" value="13"/ </component <component name="nonSpeechDataFilter type="edu. cnu. sphinx. frontend endpoint. Non SpeechDataFilter"/> <component name=speechMar ke r l type=edu. cmu sphinx. frontend endpoint. SpeechMarker> <property name=speechTrailer" value="50"/> </ component> <component name="premphasizer type="edu. cmu sphinx. frontend filter. Preemphasizer"/> <component name-"windower type=edu. cmu. sphinx. frontend. window. Raisedcosinewindower"> </component> <component name=fft type=edu. cmu sphinx. frontend. trans form Di FourierTransform"/> <component name=melFilterBank'r type-edu. cmu sphinx. frontend. frequencywarp MelFrequencyFilterBank"> </component> <cOmponent name="act" type="edu. cmu sphinx. frontend. trans form. DiscreteCosineTrarsform"/> <component name=batchCMN ype=edu. cmu sphinx. frontend. feature. BatcrCMN"/> <component name=liveCMN type="edu. cmu sphinx. frontend feature. LiveCMN"/> <component name=featureExtraction type="edu. cmu sphinx. frontend. feature. DeltasFeatureExtractor"/> <component name="microphone type="edu. cmu sphinx. frontend util. Microphone> <propety name="msecFerRead" value=10"/> <property name="c_oseBetweenUtterances" value="false"/> </component>

...展开详情
试读 27P sphinx4编程指南
img
Moilk_nepho
  • 分享宗师

    成功上传21个资源即可获取

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐
    sphinx4编程指南 21积分/C币 立即下载
    1/27
    sphinx4编程指南第1页
    sphinx4编程指南第2页
    sphinx4编程指南第3页
    sphinx4编程指南第4页
    sphinx4编程指南第5页
    sphinx4编程指南第6页
    sphinx4编程指南第7页
    sphinx4编程指南第8页
    sphinx4编程指南第9页

    试读已结束,剩余18页未读...

    21积分/C币 立即下载 >