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.googletts.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Voice service implementation.
21 * @author Gabor Bicskei - Initial contribution
24 class GoogleTTSConfig {
26 * Access to Google Cloud Platform
28 public @Nullable String clientId;
29 public @Nullable String clientSecret;
30 public @Nullable String authcode;
35 public Double pitch = 0d;
40 public Double volumeGainDb = 0d;
45 public Double speakingRate = 1d;
48 public String toString() {
49 return "GoogleTTSConfig{pitch=" + pitch + ", speakingRate=" + speakingRate + ", volumeGainDb=" + volumeGainDb
53 String toConfigString() {
54 return String.format("pitch=%f,speakingRate=%f,volumeGainDb=%f", pitch, speakingRate, volumeGainDb);