]> git.basschouten.com Git - openhab-addons.git/blob
61946f760c29f7d220d53205a4693f4250bcf82e
[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  * Configuration to set up audio encoder.
17  *
18  * @author Wouter Born - Initial contribution
19  */
20 public enum AudioEncoding {
21
22     /**
23      * Not specified.
24      */
25     AUDIO_ENCODING_UNSPECIFIED,
26
27     /**
28      * Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a
29      * WAV header.
30      */
31     LINEAR16,
32
33     /**
34      * MP3 audio.
35      */
36     MP3,
37
38     /**
39      * Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on
40      * Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than
41      * MP3 while using approximately the same bitrate.
42      */
43     OGG_OPUS
44 }