Recognizing Speech in live Audio ; impossible to run data generator with 'fr' local identifier

Hy,

I'm French developer and I downloaded the Recognizing Speech in live Audio sample code from Developer Apple website. I tried to execute data generator command after changing the local identifier from 'en_US' to 'fr' in data generator main file , but when I ran the command in Xcode, I had this error message : " Identifier 'fr' does not parse into two elements."

I checked the xml files associated to the bin archive file and the identifiers are no correct (they keep 'en-US' value).

Thanks for your help !

I find the solution : let data = SFCustomLanguageModelData(locale: Locale(identifier: "fr_FR"), identifier: "com.apple.SpokenWord", version: "1.0") {

"fr_FR", not "fr" :-)

Recognizing Speech in live Audio ; impossible to run data generator with 'fr' local identifier
 
 
Q