Skip to main content
Glama
testaudiomixer.py536 B
""" AudioMixer module tests """ import unittest import numpy as np from txtai.pipeline import AudioMixer class TestAudioStream(unittest.TestCase): """ AudioStream tests. """ def testAudioStream(self): """ Test mixing audio streams """ audio1 = np.random.rand(2, 5000), 100 audio2 = np.random.rand(2, 5000), 100 mixer = AudioMixer() audio, rate = mixer((audio1, audio2)) self.assertEqual(audio.shape, (2, 5000)) self.assertEqual(rate, 100)

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