dialogflow / dialogflow-apple-client

iOS SDK for Dialogflow
http://api.ai
Apache License 2.0
244 stars 65 forks source link

I need to save the audio in an archive inside the documents folder #8

Closed JosepEscobar closed 8 years ago

JosepEscobar commented 8 years ago

how can I save the audio with AVAudioRecorder or other, before or after recognizing it?

JosepEscobar commented 8 years ago

I managed to do it! _recorder = [[VoiceRecorder alloc] init]; if([_recorder startAudioSession]){ NSString *mail = [[NSUserDefaults standardUserDefaults] objectForKey:@"email"]; filePath = [[NSString alloc] initWithString: [docsDir stringByAppendingPathComponent:@"carrete/"]]; filePath = [[NSString alloc] initWithString: [filePath stringByAppendingString:_photo.voiceFile]]; [_recorder recordToFile:filePath]; }

sstepashka commented 8 years ago

What reason for use it?

Our SDK doesnt support save audio file, but It can be implemented if required. Now you cannot legal save audio to file, that sended to server.

JosepEscobar commented 8 years ago

I need record for my app funcitionality. Educational propose only.