Skip to main content
Glama
testtexttoaudio.py528 B
""" TextToAudio module tests """ import unittest from txtai.pipeline import TextToAudio class TestTextToAudio(unittest.TestCase): """ TextToAudio tests. """ def testTextToAudio(self): """ Test generating audio for text """ tta = TextToAudio("hf-internal-testing/tiny-random-MusicgenForConditionalGeneration") # Check that data is generated audio, rate = tta("This is a test") self.assertGreater(len(audio), 0) self.assertEqual(rate, 24000)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/neuml/txtai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server