//
//  TTSProtocl.h
//  HYTTS
//
//  Created by apple on 2023/11/14.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol TTSProtocl <NSObject>


/*
 *Warning callback
 */
-(void)onWarningWithCode:(NSString *)code WithMessage:(NSString *)message WithTaskId:(NSString *)taskid;


/*
 *Error callback
 */
-(void)onErrorWithCode:(NSString *)code WithMessage:(NSString *)message WithTaskId:(NSString *)taskid;

/*
 *Audio
 */
-(void)onAudio:(NSData *)audioData;

/*
 *Initialization successful
 */
-(void)onSuccess;


/**
 * machine code
 */
- (void) onMachineCode: (NSString *)MachineCode;


-(void) onPlayerEnd;

@end

NS_ASSUME_NONNULL_END
