Package 

Interface IVoiceServiceApi

  • All Implemented Interfaces:

    
    public interface IVoiceServiceApi
    
                        

    This interface exposes all the methods needed for using the voice service features.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • setupVoiceService

         abstract Unit setupVoiceService(Context context)

        This method handles the voice service setup.

        Parameters:
        context - The context used for executing the copy resources operation.
      • registerHttpProxy

         abstract Unit registerHttpProxy()

        This method registers the http instance to voice service for being able to execute http calls. Must be called before initialising the VoiceService

      • sendText

         abstract Unit sendText(String text)

        This method will send user voice command to voice service as a text.

        Parameters:
        text - The voice command that should be sent to voice service.
      • updateContext

         abstract Unit updateContext(String jsonContent)

        This method will send the current context to voice.

        Parameters:
        jsonContent - The context that has to be sent to voice.
      • updateSettings

         abstract Unit updateSettings(String jsonContent)

        This method will send the settings information required by voice service for a proper run

        Parameters:
        jsonContent - The settings info that should be sent to voice.
      • setInternetConnection

         abstract Unit setInternetConnection(Boolean hasInternetConnection)

        This method will set the state of the internet connection

        Parameters:
        hasInternetConnection - True if there is internet connection and false otherwise¬