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.voicerss.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.audio.AudioException;
19 import org.openhab.core.audio.AudioFormat;
20 import org.openhab.core.audio.AudioStream;
21 import org.openhab.core.audio.FileAudioStream;
24 * Implementation of the {@link AudioStream} interface for the
25 * {@link VoiceRSSTTSService}. It simply uses a {@link FileAudioStream} which is
26 * doing all the necessary work, e.g. supporting MP3 and WAV files with fixed
29 * @author Jochen Hiller - Initial contribution and API
32 class VoiceRSSAudioStream extends FileAudioStream {
34 public VoiceRSSAudioStream(File audioFile, AudioFormat format) throws AudioException {
35 super(audioFile, format);