2012-06-22 2 views
4

OpenEars를 사용하려하지만 성가신 오류가 발생합니다. languagemodel 파일을 프로젝트에 추가 한 후 응용 프로그램을 실행하려고하면 오류가 즉시 시작됩니다.Xcode - OpenEars 언어 모델 파일 오류

\data\ 
ngram 1=10 
ngram 2=16 
ngram 3=8 

\1-grams: 
-0.7782 </s> -0.3010 
-0.7782 <s> -0.2218 
-1.6812 BACKWARD -0.2218 
-1.6812 FORWARD -0.2218 
-1.6812 GO -0.2218 
-1.6812 LEFT -0.2218 
-1.6812 RIGHT -0.2218 
-1.6812 START -0.2218 
-1.6812 STOP -0.2218 
-1.6812 TURN -0.2218 

\2-grams: 
-1.2041 <s> BACKWARD 0.0000 
-1.2041 <s> FORWARD 0.0000 
-1.2041 <s> GO 0.0000 
-1.2041 <s> LEFT 0.0000 
-1.2041 <s> RIGHT 0.0000 
-1.2041 <s> START 0.0000 
-1.2041 <s> STOP 0.0000 
-1.2041 <s> TURN 0.0000 
-0.3010 BACKWARD </s> -0.3010 
-0.3010 FORWARD </s> -0.3010 
-0.3010 GO </s> -0.3010 
-0.3010 LEFT </s> -0.3010 
-0.3010 RIGHT </s> -0.3010 
-0.3010 START </s> -0.3010 
-0.3010 STOP </s> -0.3010 
-0.3010 TURN </s> -0.3010 

\3-grams: 
-0.3010 <s> BACKWARD </s> 
-0.3010 <s> FORWARD </s> 
-0.3010 <s> GO </s> 
-0.3010 <s> LEFT </s> 
-0.3010 <s> RIGHT </s> 
-0.3010 <s> START </s> 
-0.3010 <s> STOP </s> 
-0.3010 <s> TURN </s> 

\end\ 

난 정말 당신이 날 도울 수 있기를 바랍니다 :

여기
Lex /Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm 
    cd "/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3" 
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    lex -o/Users/ilizabetabibi/Library/Developer/Xcode/DerivedData/TTSTest3-dsfbczwtfautfsglnlohlfwwgmjt/Build/Intermediates/TTSTest3.build/Debug-iphonesimulator/TTSTest3.build/DerivedSources/4075.languagemodel.yy.m "/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm" 

/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:6: name defined twice 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:9: name defined twice 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: bad character: \ 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: unknown error processing section 1 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: unknown error processing section 1 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: bad character: \ 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:14: name defined twice 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:15: name defined twice 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: \ 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: 1 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: - 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: unknown error processing section 1 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: : 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: - 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 0 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: . 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 7 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 7 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 8 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 2 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: < 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character:/
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: unknown error processing section 1 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 
/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:58: premature EOF 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1 

는 언어 모델 파일입니다 여기 오류입니다. 안부 인사, Adi.

답변

6

여기에 OpenEars 개발자가 있습니다. 일반적으로 OpenEars 포럼에서 OpenEars 관련 문제 해결 질문을하는 것이 가장 좋습니다. 스택 오버플로에서 OpenEars를 지원하지 않기 때문에 많은 스택 오버플로 사용자에게 영향을 미치지 않습니다. 이 문제를 해결하려면, 당신은 CMU의 도구를 사용하여 언어 모델 생성 한 그 지점에서 시작 OpenEars 문서에서 다음과 같이 시도하십시오 :

Download and unzip the archive. In this archive will be a file with the suffix “.lm” which you should name to whatever you like with the suffix .languagemodel (for instance, myvoiceproject.languagemodel). Do this renaming now in the Finder (not later after you have imported the file into Xcode), making sure that you don’t accidentally remove the suffix while renaming. You can verify this by dragging the file into Terminal.app and seeing what Terminal.app thinks the file is called, which will match what Xcode will think it is called.

이 단계에 대한 이유입니다 버전에 따라, 엑스 코드 때로는 무시 때로는 .lm 접미어가 붙은 파일을 컴파일하려고 시도합니다.

+0

정확히 무슨 일이 있었는지, lm 파일을 컴파일했기 때문에 Xcode가 망가졌습니다. Xcode를 컴파일하지 못하게 할 방법이 있습니까? – Adi

+1

위에서 인용 한 문서화 된 방법 외에 File Inspector에서 Xcode의 "Identity & Type"창 아래에있는 파일의 "File Type"드롭 다운 메뉴에서 "Plain Text"를 선택할 수 있습니다. – Halle

+0

고마워요. 작동하는 법 :) 어떻게 당신의 평판을 높이나요? 나는 여기 새로왔다. – Adi