2 * Copyright (c) 2010-2022 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.watsonstt.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link WatsonSTTConfiguration} class contains fields mapping thing configuration parameters.
20 * @author Miguel Álvarez - Initial contribution
23 public class WatsonSTTConfiguration {
26 * Api key for Speech-to-Text instance created on IBM Cloud.
28 public String apiKey = "";
30 * Url for Speech-to-Text instance created on IBM Cloud.
32 public String instanceUrl = "";
34 * Use the parameter to suppress side conversations or background noise.
36 public float backgroundAudioSuppression = 0f;
38 * Use the parameter to suppress word insertions from music, coughing, and other non-speech events.
40 public float speechDetectorSensitivity = 0.5f;
42 * If true, the service converts dates, times, series of digits and numbers, phone numbers, currency values, and
43 * internet addresses into more readable.
45 public boolean smartFormatting = false;
47 * If true, the service redacts, or masks, numeric data from final transcripts.
49 public boolean redaction = false;
51 * The time in seconds after which, if only silence (no speech) is detected in the audio, the connection is closed.
53 public int inactivityTimeout = 3;
55 * Message to be told when no results
57 public String noResultsMessage = "No results";
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.
62 public boolean optOutLogging = true;