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.voskstt.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link VoskSTTConfiguration} class contains Vosk STT Service configuration.
20 * @author Miguel Álvarez - Initial contribution
23 public class VoskSTTConfiguration {
27 public boolean singleUtteranceMode = true;
29 * Max seconds to wait to force stop the transcription.
31 public int maxTranscriptionSeconds = 60;
33 * Only works when singleUtteranceMode is disabled, max seconds without getting new transcriptions to stop
36 public int maxSilenceSeconds = 3;
38 * Message to be told when no results.
40 public String noResultsMessage = "Sorry, I didn't understand you";
42 * Message to be told when an error has happened.
44 public String errorMessage = "Sorry, something went wrong";
46 * Keep language model loaded
48 public boolean preloadModel = true;