Skip to content

Commit 431acf4

Browse files
author
Julien Salinas
committed
Add TS types for word level timestamps in ASR.
1 parent 1c3fcea commit 431acf4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ declare class Client {
3434
text: string;
3535
duration: number;
3636
language: string;
37-
segments: { id: number, start: number, end: number, text: string }
37+
segments: { id: number, start: number, end: number, text: string };
38+
words: { id: number, start: number, end: number, text: string };
3839
};
3940
} | {
4041
status: number;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nlpcloud",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, text generation, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, embeddings, and dependency parsing. It is ready for production, served through a REST API.\n\nThis is the Node.js client for the NLP Cloud API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)