//
//  NuanceTextToSpeechDelegate.h
//  NuanceTextToSpeechDelegate
//
//  Created by Dominique van Mil on 27/01/2017.
//  Copyright © 2017 SIMDO. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <AudioToolbox/AudioServices.h>

// I am going to call these methods on you...
@protocol TtsDelegate <NSObject>
-(void)didFinishPlaying;
@end

@interface NuanceTextToSpeechDelegate : NSObject <AVSpeechSynthesizerDelegate>
{
  AVSpeechSynthesizer* synthesizer;
}

- (void)configure:(NSDictionary*)args;

- (void)speak:(NSDictionary*)args;

- (void)notify:(NSDictionary*)args;

@property (nonatomic, weak) id <TtsDelegate> delegate;

@end
