xbmc
ISpeechRecognitionListener.h
1 /*
2  * Copyright (C) 2005-2022 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <string>
12 #include <vector>
13 
14 namespace speech
15 {
17 {
18 public:
19  virtual ~ISpeechRecognitionListener() = default;
20 
21  virtual void OnReadyForSpeech() {}
22  virtual void OnError(int recognitionError) = 0;
23  virtual void OnResults(const std::vector<std::string>& results) = 0;
24 };
25 
26 } // namespace speech
Definition: SpeechRecognitionListenerAndroid.h:15
Definition: ISpeechRecognitionListener.h:16