-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from NexaAI/zack-dev
Disable bark.cpp
- Loading branch information
Showing
5 changed files
with
31 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
from nexa.gguf import NexaTTSInference | ||
# Temporarily disabled since version v0.0.9.3 | ||
|
||
def test_tts_generation(): | ||
tts = NexaTTSInference( | ||
model_path="bark-small", | ||
local_path=None, | ||
n_threads=4, | ||
seed=42, | ||
sampling_rate=24000, | ||
verbosity=2 | ||
) | ||
# from nexa.gguf import NexaTTSInference | ||
|
||
# def test_tts_generation(): | ||
# tts = NexaTTSInference( | ||
# model_path="bark-small", | ||
# local_path=None, | ||
# n_threads=4, | ||
# seed=42, | ||
# sampling_rate=24000, | ||
# verbosity=2 | ||
# ) | ||
|
||
# Generate audio from prompt | ||
prompt = "Hello, this is a test of the Bark text to speech system." | ||
audio_data = tts.audio_generation(prompt) | ||
# # Generate audio from prompt | ||
# prompt = "Hello, this is a test of the Bark text to speech system." | ||
# audio_data = tts.audio_generation(prompt) | ||
|
||
# Save the generated audio | ||
tts._save_audio(audio_data, tts.sampling_rate, "tts_output") | ||
print("TTS generation test completed successfully!") | ||
# # Save the generated audio | ||
# tts._save_audio(audio_data, tts.sampling_rate, "tts_output") | ||
# print("TTS generation test completed successfully!") | ||
|
||
if __name__ == "__main__": | ||
test_tts_generation() | ||
# if __name__ == "__main__": | ||
# test_tts_generation() |