Vasu Ashok
Vasu Ashok

Reputation: 1413

Speech(from wav Audio File which have PCM Audio data) to text Recognition API in IOS?

am new to Voice Recognition .i can able to convert speech(recording from Device mic) to text Using by some API like ispeech,openers,& so on .

But i couldn't find any API for Convert Audio wav file to text . i think,can do with some external server (java) support via file sharing . but i like to do without using internet .is there any API available for IOS ???

Upvotes: 0

Views: 1624

Answers (1)

rezand
rezand

Reputation: 576

Looked into the sample of open ears demo and saw this so yes it is possible with open ears

- (void) startListening {

// startListeningWithLanguageModelAtPath:dictionaryAtPath:languageModelIsJSGF always needs to know the grammar file being used,
// the dictionary file being used, and whether the grammar is a JSGF. You must put in the correct value for languageModelIsJSGF.
// Inside of a single recognition loop, you can only use JSGF grammars or ARPA grammars, you can't switch between the two types.

// An ARPA grammar is the kind with a .languagemodel or .DMP file, and a JSGF grammar is the kind with a .gram file.

// If you wanted to just perform recognition on an isolated wav file for testing, you could do it as follows:

// NSString *wavPath = [NSString stringWithFormat:@"%@/%@",[[NSBundle mainBundle] resourcePath], @"test.wav"];
//[self.pocketsphinxController runRecognitionOnWavFileAtPath:wavPath usingLanguageModelAtPath:self.pathToGrammarToStartAppWith dictionaryAtPath:self.pathToDictionaryToStartAppWith languageModelIsJSGF:FALSE];  // Starts the recognition loop.

// But under normal circumstances you'll probably want to do continuous recognition as follows:

[self.pocketsphinxController startListeningWithLanguageModelAtPath:self.pathToGrammarToStartAppWith dictionaryAtPath:self.pathToDictionaryToStartAppWith languageModelIsJSGF:FALSE];


}

Upvotes: 0

Related Questions