We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/orishu/mcpvoicenotif'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_voice_api.py•745 B
"""
Test script for voice notification functionality.
"""
import os
from dotenv import load_dotenv
from voice import generate_and_play_voice
# Load environment variables
load_dotenv()
def test_voice_api(text: str = "Hello, this is a test"):
"""
Test the voice notification functionality.
Args:
text: The text to convert to speech
"""
api_key = os.getenv("GROK_API_KEY")
if not api_key:
print("Error: GROK_API_KEY environment variable not set.")
return
print(f"Testing voice notification with text: '{text}'")
success, message = generate_and_play_voice(text, api_key)
print(f"Result: {message}")
print(f"Success: {success}")
if __name__ == "__main__":
test_voice_api()