You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
781 B
22 lines
781 B
import Flutter
|
|
import UIKit
|
|
|
|
/**
|
|
* SpeechPlugin
|
|
*
|
|
* 语音服务接口定义插件
|
|
* 注意:此插件仅提供接口定义,不提供具体实现
|
|
* 实际的语音识别和合成功能由其他插件实现
|
|
*/
|
|
public class SwiftSpeechPlugin: NSObject, FlutterPlugin {
|
|
public static func register(with registrar: FlutterPluginRegistrar) {
|
|
let channel = FlutterMethodChannel(name: "speech", binaryMessenger: registrar.messenger())
|
|
let instance = SwiftSpeechPlugin()
|
|
registrar.addMethodCallDelegate(instance, channel: channel)
|
|
}
|
|
|
|
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
|
// 此插件仅提供接口定义,不处理任何方法调用
|
|
result(FlutterMethodNotImplemented)
|
|
}
|
|
}
|