]> git.basschouten.com Git - openhab-addons.git/blob
b7785541e3a0b639caaf382df48640bbab8a6f48
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.watsonstt.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link WatsonSTTConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Miguel Álvarez - Initial contribution
21  */
22 @NonNullByDefault
23 public class WatsonSTTConfiguration {
24
25     /**
26      * Api key for Speech-to-Text instance created on IBM Cloud.
27      */
28     public String apiKey = "";
29     /**
30      * Url for Speech-to-Text instance created on IBM Cloud.
31      */
32     public String instanceUrl = "";
33     /**
34      * Use the parameter to suppress side conversations or background noise.
35      */
36     public float backgroundAudioSuppression = 0f;
37     /**
38      * Use the parameter to suppress word insertions from music, coughing, and other non-speech events.
39      */
40     public float speechDetectorSensitivity = 0.5f;
41     /**
42      * If true, the service converts dates, times, series of digits and numbers, phone numbers, currency values, and
43      * internet addresses into more readable.
44      */
45     public boolean smartFormatting = false;
46     /**
47      * If true, the service redacts, or masks, numeric data from final transcripts.
48      */
49     public boolean redaction = false;
50     /**
51      * The time in seconds after which, if only silence (no speech) is detected in the audio, the connection is closed.
52      */
53     public int inactivityTimeout = 3;
54     /**
55      * Message to be told when no results
56      */
57     public String noResultsMessage = "No results";
58     /**
59      * By default, all IBM Watson™ services log requests and their results. Logging is done only to improve the services
60      * for future users. The logged data is not shared or made public.
61      */
62     public boolean optOutLogging = true;
63 }