]> git.basschouten.com Git - openhab-addons.git/blob
db9e68106556a7f612310b3ba01092a16b56373f
[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.pollytts.internal;
14
15 import java.io.File;
16
17 import org.openhab.core.audio.AudioException;
18 import org.openhab.core.audio.AudioFormat;
19 import org.openhab.core.audio.AudioStream;
20 import org.openhab.core.audio.FileAudioStream;
21
22 /**
23  * Implementation of the {@link AudioStream} interface for the {@link PollyTTSService}.
24  * It simply uses a {@link FileAudioStream} which is doing all the necessary work,
25  * e.g. supporting MP3 and WAV files with fixed stream length.
26  *
27  * @author Robert Hillman - Initial contribution
28  */
29 class PollyTTSAudioStream extends FileAudioStream {
30
31     /**
32      * main method the passes the audio file to system audio services
33      */
34     public PollyTTSAudioStream(File audioFile, AudioFormat format) throws AudioException {
35         super(audioFile, format);
36     }
37 }