Add TTS with VITS (#360)
This commit is contained in:
26
sherpa-onnx/csrc/offline-tts-impl.h
Normal file
26
sherpa-onnx/csrc/offline-tts-impl.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// sherpa-onnx/csrc/offline-tts-impl.h
|
||||
//
|
||||
// Copyright (c) 2023 Xiaomi Corporation
|
||||
|
||||
#ifndef SHERPA_ONNX_CSRC_OFFLINE_TTS_IMPL_H_
|
||||
#define SHERPA_ONNX_CSRC_OFFLINE_TTS_IMPL_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "sherpa-onnx/csrc/offline-tts.h"
|
||||
|
||||
namespace sherpa_onnx {
|
||||
|
||||
class OfflineTtsImpl {
|
||||
public:
|
||||
virtual ~OfflineTtsImpl() = default;
|
||||
|
||||
static std::unique_ptr<OfflineTtsImpl> Create(const OfflineTtsConfig &config);
|
||||
|
||||
virtual GeneratedAudio Generate(const std::string &text) const = 0;
|
||||
};
|
||||
|
||||
} // namespace sherpa_onnx
|
||||
|
||||
#endif // SHERPA_ONNX_CSRC_OFFLINE_TTS_IMPL_H_
|
||||
Reference in New Issue
Block a user