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.dto;
16 * Configuration to set up audio encoder.
18 * @author Wouter Born - Initial contribution
20 public enum AudioEncoding {
25 AUDIO_ENCODING_UNSPECIFIED,
28 * Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a
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.