# edge-tts-api **Repository Path**: ai_base/edge-tts-api ## Basic Information - **Project Name**: edge-tts-api - **Description**: edge tts api - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-25 - **Last Updated**: 2025-10-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Edge TTS and Text-to-Video API Test Project This project aims to test the functionality of two key APIs: `edge-tts-api` and `text-to-video-api`. Currently, the code primarily implements text-to-video conversion features, supporting submission and status querying of video generation tasks. ## 📌 Features - **Text-to-Video API** - Submit text-to-video generation jobs - Query the status of video generation jobs ## 🛠️ Usage Examples ### Submit a Video Generation Job ```python submit_text_to_video_job(prompt: str, with_audio: bool = True) -> str ``` - `prompt`: Text description used for video generation. - `with_audio`: Whether to include audio in the video (default is `True`). - Returns a job ID, which can be used to query the job status later. ### Query Job Status ```python query_text_to_video_job_status(task_id: str) ``` - `task_id`: The ID returned when submitting the job. - Returns the current status information of the task. ### FastAPI Endpoint ```python @app.post("/zhipuai/video") async def submit_text_to_video(request: VideoRequest) -> VideoResponse ``` - Accepts a request body of type `VideoRequest`. - Returns a response of type `VideoResponse`, including the task ID and status. ## 📁 File Structure - `test-edge-tts-api.py`: Test code for the Edge TTS API (no specific implementation provided currently). - `test-text-to-video-api.py`: Contains request models, response models, and endpoint definitions for the text-to-video API. ## 📝 Notes - This project currently contains only test code, without full deployment configurations or production-ready implementations. - To extend functionality, refer to the existing structure to add more test cases or integrate additional APIs. ## 📜 License Please refer to the `LICENSE` file in the project root directory. --- For further improvement of this README, please provide the specific implementation details of `test-edge-tts-api.py` or other parts of the project.