mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
feat: rename
This commit is contained in:
parent
de610df25d
commit
eb232efdfc
3 changed files with 7 additions and 7 deletions
|
|
@ -61,8 +61,8 @@ class AzureTTS:
|
|||
|
||||
|
||||
# Export
|
||||
def openapi_azsure_tts(text, lang="", voice="", style="", role="", subscription_key="", region=""):
|
||||
"""openapi/tts/azsure
|
||||
def oas3_azsure_tts(text, lang="", voice="", style="", role="", subscription_key="", region=""):
|
||||
"""oas3/tts/azsure
|
||||
For more details, check out:`https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts`
|
||||
|
||||
:param lang: The value can contain a language code such as en (English), or a locale such as en-US (English - United States). For more details, checkout: `https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts`
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
"""
|
||||
@Time : 2023/8/17
|
||||
@Author : mashenquan
|
||||
@File : metagpt_openapi_svc.py
|
||||
@Desc : MetaGPT OpenAPI REST API service
|
||||
@File : metagpt_oas3_api_svc.py
|
||||
@Desc : MetaGPT OpenAPI Specification 3.0 REST API service
|
||||
"""
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
|
@ -16,5 +16,5 @@ if __name__ == "__main__":
|
|||
initalize_enviroment()
|
||||
|
||||
app = connexion.AioHttpApp(__name__, specification_dir='../../spec/')
|
||||
app.add_api("metagpt_openapi.yaml")
|
||||
app.add_api("metagpt_oas3_api.yaml")
|
||||
app.run(port=8080)
|
||||
|
|
@ -4,14 +4,14 @@ info:
|
|||
title: "MetaGPT Export OpenAPIs"
|
||||
version: "1.0"
|
||||
servers:
|
||||
- url: "/openapi"
|
||||
- url: "/oas3"
|
||||
|
||||
paths:
|
||||
/tts/azsure:
|
||||
post:
|
||||
summary: "Convert Text to Base64-encoded .wav File Stream"
|
||||
description: "For more details, check out: [Azure Text-to_Speech](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts)"
|
||||
operationId: azure_tts.openapi_azsure_tts
|
||||
operationId: azure_tts.oas3_azsure_tts
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
Loading…
Add table
Add a link
Reference in a new issue