2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.voice.googlestt.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link GoogleSTTConfiguration} class contains fields mapping thing configuration parameters.
20 * @author Miguel Álvarez - Initial contribution
23 public class GoogleSTTConfiguration {
25 * Google Cloud Client ID, needs Speech To Text API enabled
27 public String clientId = "";
29 * Google Cloud Client Secret
31 public String clientSecret = "";
33 * Code for obtain oauth access token
35 public String oauthCode = "";
37 * Message to be told when no results.
39 public String noResultsMessage = "";
41 * Message to be told when an error has happened.
43 public String errorMessage = "";
45 * Max seconds to wait to force stop the transcription.
47 public int maxTranscriptionSeconds = 60;
49 * Only works when singleUtteranceMode is disabled, max seconds without getting new transcriptions to stop
52 public int maxSilenceSeconds = 3;
56 public boolean singleUtteranceMode = true;
58 * Try loading supported locales from the documentation page.
60 public boolean refreshSupportedLocales = false;