This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex_bi_series-sherpa-onnx/sherpa-onnx/csrc/offline-tts-impl.h
Fangjun Kuang 9efe69720d Support VITS VCTK models (#367)
* Support VITS VCTK models

* Release v1.8.1
2023-10-16 17:22:30 +08:00

28 lines
638 B
C++

// 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,
int64_t sid = 0) const = 0;
};
} // namespace sherpa_onnx
#endif // SHERPA_ONNX_CSRC_OFFLINE_TTS_IMPL_H_