Skip to content

Commit 87d3299

Browse files
author
Julien Salinas
committed
Support ASR input language.
1 parent 5f648da commit 87d3299

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nlpcloud/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ def article_generation(self, title):
6161

6262
return r.json()
6363

64-
def asr(self, url=None, encoded_file=None):
64+
def asr(self, url=None, encoded_file=None, input_language=None):
6565
payload = {
6666
"url": url,
67-
"encoded_file": encoded_file
67+
"encoded_file": encoded_file,
68+
"input_language": input_language
6869
}
6970

7071
r = requests.post(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='nlpcloud',
5-
version='1.0.37',
5+
version='1.0.38',
66
description='Python client for the NLP Cloud API',
77
long_description="NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text generation, image generation, blog post generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.\n\nThis is the Python client for the API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io\n\nGithub: https://github.com/nlpcloud/nlpcloud-python",
88
packages=['nlpcloud'],

0 commit comments

Comments
 (0)