TinyTrainable
Loading...
Searching...
No Matches
command_responder.h
Go to the documentation of this file.
1
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
2
3
Licensed under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License.
5
You may obtain a copy of the License at
6
7
http://www.apache.org/licenses/LICENSE-2.0
8
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License.
14
==============================================================================*/
15
16
// Provides an interface to take an action based on an audio command.
17
18
#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_
19
#define TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_
20
21
#include "tensorflow/lite/c/common.h"
22
23
// Called every time the results of an audio recognition run are available. The
24
// human-readable name of any recognized command is in the `found_command`
25
// argument, `score` has the numerical confidence, and `is_new_command` is set
26
// if the previous command was different to this one.
27
void
RespondToCommand
(int32_t current_time,
const
char
* found_command,
28
uint8_t score,
bool
is_new_command);
29
30
#endif
// TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_
RespondToCommand
void RespondToCommand(int32_t current_time, const char *found_command, uint8_t score, bool is_new_command)
Definition:
arduino_command_responder.cpp:28
src
tensorflow_speech
command_responder.h
Generated by
1.9.6