]> git.basschouten.com Git - openhab-addons.git/blob
bae4be2c9782a7eb799c97d7ad8d003dd6428009
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.voice.googlestt.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link GoogleSTTConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Miguel Álvarez - Initial contribution
21  */
22 @NonNullByDefault
23 public class GoogleSTTConfiguration {
24     /**
25      * Google Cloud Client ID, needs Speech To Text API enabled
26      */
27     public String clientId = "";
28     /**
29      * Google Cloud Client Secret
30      */
31     public String clientSecret = "";
32     /**
33      * Code for obtain oauth access token
34      */
35     public String oauthCode = "";
36     /**
37      * Message to be told when no results.
38      */
39     public String noResultsMessage = "";
40     /**
41      * Message to be told when an error has happened.
42      */
43     public String errorMessage = "";
44     /**
45      * Max seconds to wait to force stop the transcription.
46      */
47     public int maxTranscriptionSeconds = 60;
48     /**
49      * Only works when singleUtteranceMode is disabled, max seconds without getting new transcriptions to stop
50      * listening.
51      */
52     public int maxSilenceSeconds = 3;
53     /**
54      * Single phrase mode.
55      */
56     public boolean singleUtteranceMode = true;
57     /**
58      * Try loading supported locales from the documentation page.
59      */
60     public boolean refreshSupportedLocales = false;
61 }