0fa4e405
吴启风
feat: 将语音评测从先声迁移至驰声
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// ChivoxAIAudioPlayer.h
// CAIEngine
//
// Created by chivox on 2019/10/21.
// Copyright © 2019 chivox. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@class ChivoxAIAudioPlayer;
@interface ChivoxAIAudioPlayerListener : NSObject
@property (nonatomic, strong) void (^onStarted)(ChivoxAIAudioPlayer *ap);
@property (nonatomic, strong) void (^onStopped)(ChivoxAIAudioPlayer *ap);
@property (nonatomic, strong) void (^onError)(ChivoxAIAudioPlayer *ap, NSString *err);
@end
@interface ChivoxAIAudioPlayer : NSObject<AVAudioPlayerDelegate>
+ (ChivoxAIAudioPlayer *)sharedInstance;
- (void)setListener:(ChivoxAIAudioPlayerListener *)_event;
- (void)playFile:(NSString *)path;
- (void)cancel;
@end
|