Blame view

packages/chivox_aiengine/lib/chivox_aiengine_platform_interface.dart 2.75 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  import 'dart:typed_data';
  
  import 'package:plugin_platform_interface/plugin_platform_interface.dart';
  
  import 'chivox_aiengine_method_channel.dart';
  
  abstract class ChivoxAienginePlatform extends PlatformInterface {
    /// Constructs a ChivoxAienginePlatform.
    ChivoxAienginePlatform() : super(token: _token);
  
    static final Object _token = Object();
  
    static ChivoxAienginePlatform _instance = MethodChannelChivoxAiengine();
  
    /// The default instance of [ChivoxAienginePlatform] to use.
    ///
    /// Defaults to [MethodChannelChivoxAiengine].
    static ChivoxAienginePlatform get instance => _instance;
  
    /// Platform-specific implementations should set this with their own
    /// platform-specific class that extends [ChivoxAienginePlatform] when
    /// they register themselves.
    static set instance(ChivoxAienginePlatform instance) {
      PlatformInterface.verifyToken(instance, _token);
      _instance = instance;
    }
  
    Future<String?> getPlatformVersion() {
      throw UnimplementedError('platformVersion() has not been implemented.');
    }
  
    Future<String?> aiengineNew(String cfg) {
      throw UnimplementedError('aiengineNew() has not been implemented.');
    }
  
    Future<void> aiengineDelete(String engineId) {
      throw UnimplementedError('aiengineDelete() has not been implemented.');
    }
  
    Future<void> aiengineStart(String engineId, Map<String, dynamic> audioSrc,
        String param, String callbackId) {
      throw UnimplementedError('aiengineStart() has not been implemented.');
    }
  
    Future<void> aiengineFeed(String engineId, Uint8List bytes, int length) {
      throw UnimplementedError('aiengineFeed() has not been implemented.');
    }
  
    Future<void> aiengineStop(String engineId) {
      throw UnimplementedError('aiengineStop() has not been implemented.');
    }
  
    Future<void> aiengineCancel(String engineId) {
      throw UnimplementedError('aiengineCancel() has not been implemented.');
    }
  
    Future<String?> getDeviceId() {
      throw UnimplementedError('getDeviceId() has not been implemented.');
    }
  
    Future<String?> getSerialNumber(String? engineId, Map input) {
      throw UnimplementedError('getSerialNumber() has not been implemented.');
    }
  
    Future<bool?> clearSavedSerialNumber(String appKey) {
      throw UnimplementedError(
          'clearSavedSerialNumber() has not been implemented.');
    }
  
    Future<String?> getProvision(String? engineId, Map input) {
      throw UnimplementedError('getProvision() has not been implemented.');
    }
  
    Future<void> extractRes(String assetPrefix, List<String> assetNames,
        String targetDir, String callbackId) {
      throw UnimplementedError('extractRes() has not been implemented.');
    }
  
    Future<String?> loadNativeCfg(String resRootDir, List<String> resNames) {
      throw UnimplementedError('loadNativeCfg() has not been implemented.');
    }
  }