@transcribe-api/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/index.js +16 -0
- package/package.json +23 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Transcribe API JavaScript SDK
|
|
2
|
+
|
|
3
|
+
Official JavaScript SDK for Transcribe API.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @transcribe-api/sdk
|
|
9
|
+
import { TranscribeAPI } from "@transcribe-api/sdk";
|
|
10
|
+
|
|
11
|
+
const client = new TranscribeAPI({
|
|
12
|
+
apiKey: "YOUR_API_KEY"
|
|
13
|
+
});
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class TranscribeAPI {
|
|
2
|
+
constructor({ apiKey, baseUrl = "https://api.transcribeapi.com/v1" }) {
|
|
3
|
+
if (!apiKey) {
|
|
4
|
+
throw new Error("Missing API key");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
this.apiKey = apiKey;
|
|
8
|
+
this.baseUrl = baseUrl.replace(/\/+$/, "");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async transcribe() {
|
|
12
|
+
throw new Error(
|
|
13
|
+
"The Transcribe API JavaScript SDK is coming soon. For now, use the REST API docs at https://transcribeapi.com."
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@transcribe-api/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Official JavaScript SDK for Transcribe API.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"transcription",
|
|
16
|
+
"speech-to-text",
|
|
17
|
+
"whisper",
|
|
18
|
+
"audio",
|
|
19
|
+
"api"
|
|
20
|
+
],
|
|
21
|
+
"author": "Transcribe API",
|
|
22
|
+
"license": "MIT"
|
|
23
|
+
}
|