Last active
February 16, 2021 22:50
-
-
Save pengj/6a679f335fd0b54e9bfed202171e8c80 to your computer and use it in GitHub Desktop.
Direction Provider and internal class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface DirectionProvider { | |
fun start() | |
fun stop() | |
fun destroy() | |
} | |
internal class HuaweiVoiceProvider( | |
private val context: Context, | |
private val voiceDirectionExtractor: VoiceDirectionExtractor, | |
private val onDirectionListener: (direction: Direction) -> Unit, | |
) : MLAsrListener, DirectionProvider | |
internal class VoiceProvider( | |
context: Context, | |
private val voiceDirectionExtractor: VoiceDirectionExtractor, | |
private val onDirectionListener: (direction: Direction) -> Unit | |
) : RecognitionListener, DirectionProvider |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment