]> git.basschouten.com Git - openhab-addons.git/blob
ff1474d435e4dc968fb0831ba9939d9a231d764f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.googletts.internal.dto;
14
15 /**
16  * The message returned to the client by the text.synthesize method.
17  *
18  * @author Wouter Born - Initial contribution
19  */
20 public class SynthesizeSpeechResponse {
21
22     /**
23      * The audio data bytes encoded as specified in the request, including the header (For LINEAR16 audio, we include
24      * the WAV header). Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON
25      * representations use base64.
26      * 
27      * A base64-encoded string.
28      */
29     private String audioContent;
30
31     public String getAudioContent() {
32         return audioContent;
33     }
34
35     public void setAudioContent(String audioContent) {
36         this.audioContent = audioContent;
37     }
38 }