2 * Copyright (c) 2010-2024 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 * Prefer multimedia to telephony models. Multimedia models are intended for audio that has a minimum sampling rate
35 * of 16 kHz, while telephony models are intended for audio that has a minimum sampling rate of 8 kHz.
37 public boolean preferMultimediaModel = true;
39 * Use the parameter to suppress side conversations or background noise.
41 public float backgroundAudioSuppression = 0f;
43 * Use the parameter to suppress word insertions from music, coughing, and other non-speech events.
45 public float speechDetectorSensitivity = 0.5f;
47 * If true, the service converts dates, times, series of digits and numbers, phone numbers, currency values, and
48 * internet addresses into more readable.
50 public boolean smartFormatting = false;
52 * If true, the service redacts, or masks, numeric data from final transcripts.
54 public boolean redaction = false;
58 public boolean singleUtteranceMode = true;
60 * max seconds without getting new transcriptions to stop listening.
62 public int maxSilenceSeconds = 3;
64 * Message to be told when no results
66 public String noResultsMessage = "No results";
68 * By default, all IBM Watson™ services log requests and their results. Logging is done only to improve the services
69 * for future users. The logged data is not shared or made public.
71 public boolean optOutLogging = true;