Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Server] added engine factory and config #1399

Merged
merged 6 commits into from
Jan 27, 2022

Conversation

WilliamZhang06
Copy link
Collaborator

PR types

New features

PR changes

Models

Describe

added engine factory and config

@WilliamZhang06 WilliamZhang06 changed the title Server [WIP][Server] added engine factory and config Jan 27, 2022
@WilliamZhang06 WilliamZhang06 changed the title [WIP][Server] added engine factory and config [Server] added engine factory and config Jan 27, 2022
@@ -0,0 +1,5 @@
model: 'conformer_wenetspeech'
lang: 'conformer_wenetspeech'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zh


_router = APIRouter()

def setup_router(api_list: list):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from typing import List

api_list: List

import base64


def readwav2base64(wav_file):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wav2base64

return base64_string


def readbase64towav(base64_string):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base64towav

@zh794390558 zh794390558 added this to the r0.2.0 milestone Jan 27, 2022
Copy link
Collaborator

@zh794390558 zh794390558 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zh794390558 zh794390558 merged commit b5a2675 into PaddlePaddle:server Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants