0

je veux ajouter AVSpeechSynthesizer dans mes codes watchkitWatchkit OS 2, AVSpeechSynthesizer

et comment puis-je faire dans le kit de montre os 2 pour lire Avfoundation est-ce possible ou j'ai besoin de convertir avfoundation à Mediaplayer ou ....

AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc] init]; 
    speechPaused = YES; 
    AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:@""]; 
    utterance.rate = 0.15; 
    utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"it_IT"]; 
    [synthesizer speakUtterance:utterance]; 

comment ses travaux en watchkit OS2

Répondre