n8n-nodes-speechall 0.1.2
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/LICENSE.md +21 -0
- package/README.md +165 -0
- package/dist/credentials/SpeechallApi.credentials.d.ts +13 -0
- package/dist/credentials/SpeechallApi.credentials.js +43 -0
- package/dist/credentials/SpeechallApi.credentials.js.map +1 -0
- package/dist/nodes/Speechall/Speechall.node.d.ts +11 -0
- package/dist/nodes/Speechall/Speechall.node.js +79 -0
- package/dist/nodes/Speechall/Speechall.node.js.map +1 -0
- package/dist/nodes/Speechall/Speechall.node.json +18 -0
- package/dist/nodes/Speechall/descriptions/SpeechToText.description.d.ts +2 -0
- package/dist/nodes/Speechall/descriptions/SpeechToText.description.js +154 -0
- package/dist/nodes/Speechall/descriptions/SpeechToText.description.js.map +1 -0
- package/dist/nodes/Speechall/generated/speechall-openapi.d.ts +528 -0
- package/dist/nodes/Speechall/generated/speechall-openapi.js +3 -0
- package/dist/nodes/Speechall/generated/speechall-openapi.js.map +1 -0
- package/dist/nodes/Speechall/helpers/binary.d.ts +8 -0
- package/dist/nodes/Speechall/helpers/binary.js +29 -0
- package/dist/nodes/Speechall/helpers/binary.js.map +1 -0
- package/dist/nodes/Speechall/helpers/fields.d.ts +11 -0
- package/dist/nodes/Speechall/helpers/fields.js +344 -0
- package/dist/nodes/Speechall/helpers/fields.js.map +1 -0
- package/dist/nodes/Speechall/helpers/models.d.ts +13 -0
- package/dist/nodes/Speechall/helpers/models.js +148 -0
- package/dist/nodes/Speechall/helpers/models.js.map +1 -0
- package/dist/nodes/Speechall/helpers/normalize.d.ts +14 -0
- package/dist/nodes/Speechall/helpers/normalize.js +109 -0
- package/dist/nodes/Speechall/helpers/normalize.js.map +1 -0
- package/dist/nodes/Speechall/helpers/replacementRules.d.ts +4 -0
- package/dist/nodes/Speechall/helpers/replacementRules.js +130 -0
- package/dist/nodes/Speechall/helpers/replacementRules.js.map +1 -0
- package/dist/nodes/Speechall/helpers/types.d.ts +74 -0
- package/dist/nodes/Speechall/helpers/types.js +5 -0
- package/dist/nodes/Speechall/helpers/types.js.map +1 -0
- package/dist/nodes/Speechall/loadOptions/getSpeechToTextModels.d.ts +2 -0
- package/dist/nodes/Speechall/loadOptions/getSpeechToTextModels.js +13 -0
- package/dist/nodes/Speechall/loadOptions/getSpeechToTextModels.js.map +1 -0
- package/dist/nodes/Speechall/operations/listModels.operation.d.ts +2 -0
- package/dist/nodes/Speechall/operations/listModels.operation.js +30 -0
- package/dist/nodes/Speechall/operations/listModels.operation.js.map +1 -0
- package/dist/nodes/Speechall/operations/transcribeFile.operation.d.ts +2 -0
- package/dist/nodes/Speechall/operations/transcribeFile.operation.js +149 -0
- package/dist/nodes/Speechall/operations/transcribeFile.operation.js.map +1 -0
- package/dist/nodes/Speechall/operations/transcribeRemoteUrl.operation.d.ts +2 -0
- package/dist/nodes/Speechall/operations/transcribeRemoteUrl.operation.js +132 -0
- package/dist/nodes/Speechall/operations/transcribeRemoteUrl.operation.js.map +1 -0
- package/dist/nodes/Speechall/speechall.dark.svg +7 -0
- package/dist/nodes/Speechall/speechall.svg +7 -0
- package/dist/nodes/Speechall/transport/errors.d.ts +12 -0
- package/dist/nodes/Speechall/transport/errors.js +151 -0
- package/dist/nodes/Speechall/transport/errors.js.map +1 -0
- package/dist/nodes/Speechall/transport/speechallApiRequest.d.ts +15 -0
- package/dist/nodes/Speechall/transport/speechallApiRequest.js +81 -0
- package/dist/nodes/Speechall/transport/speechallApiRequest.js.map +1 -0
- package/dist/package.json +68 -0
- package/examples/google-drive-audio-to-transcript.json +71 -0
- package/examples/meeting-recording-to-diarized-transcript.json +59 -0
- package/examples/remote-podcast-url-to-srt.json +66 -0
- package/examples/webhook-audio-upload-to-json-transcript.json +64 -0
- package/package.json +68 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Speechall
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# n8n-nodes-speechall
|
|
2
|
+
|
|
3
|
+
Speechall is a unified speech-to-text API for transcribing audio with multiple providers and models. This package adds a verified-ready n8n community node for Speechall batch transcription workflows.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install `n8n-nodes-speechall` as a community node in n8n Cloud or self-hosted n8n after the package is published to npm.
|
|
8
|
+
|
|
9
|
+
For local development:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
nvm use
|
|
13
|
+
npm ci --ignore-scripts
|
|
14
|
+
npm run generate:openapi-types
|
|
15
|
+
npm run lint
|
|
16
|
+
npm run test
|
|
17
|
+
npm run build
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
This repository keeps runtime `dependencies` empty for n8n Cloud verification readiness. Development tooling is installed only as `devDependencies`.
|
|
21
|
+
|
|
22
|
+
Use Node 22 LTS for local n8n tooling. Newer non-LTS Node releases can fail while installing n8n development dependencies with native modules such as `isolated-vm`.
|
|
23
|
+
|
|
24
|
+
## Local n8n UI Testing
|
|
25
|
+
|
|
26
|
+
Use this flow when you want to test the node in a real local n8n editor before publishing it.
|
|
27
|
+
|
|
28
|
+
### Recommended: install the packed node into a local n8n user folder
|
|
29
|
+
|
|
30
|
+
This is the closest local equivalent to installing the package as an n8n community node. It avoids development hot-reload edge cases and uses the stable node type name `n8n-nodes-speechall.speechall`.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
nvm use
|
|
34
|
+
npm ci --ignore-scripts
|
|
35
|
+
npm run build
|
|
36
|
+
npm pack --silent
|
|
37
|
+
|
|
38
|
+
REPO_ROOT=$(pwd)
|
|
39
|
+
mkdir -p /tmp/speechall-n8n-ui/.n8n/nodes
|
|
40
|
+
cd /tmp/speechall-n8n-ui/.n8n/nodes
|
|
41
|
+
npm install "$REPO_ROOT/n8n-nodes-speechall-0.1.0.tgz" --ignore-scripts
|
|
42
|
+
|
|
43
|
+
N8N_USER_FOLDER=/tmp/speechall-n8n-ui npx n8n@latest
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Then open:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
http://localhost:5678
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Important details:
|
|
53
|
+
|
|
54
|
+
- `N8N_USER_FOLDER` should be `/tmp/speechall-n8n-ui`, not `/tmp/speechall-n8n-ui/.n8n`. n8n creates and reads its `.n8n` directory inside the user folder.
|
|
55
|
+
- The installed community node package lives under `/tmp/speechall-n8n-ui/.n8n/nodes`.
|
|
56
|
+
- After code changes, repeat `npm run build`, `npm pack --silent`, and the `npm install ...tgz` command, then restart n8n.
|
|
57
|
+
- Stop n8n with `Ctrl+C` in the terminal running `npx n8n@latest`.
|
|
58
|
+
- The temporary user folder keeps local credentials and workflows between restarts. Remove `/tmp/speechall-n8n-ui` only when you want to reset the local n8n instance.
|
|
59
|
+
|
|
60
|
+
If you prefer to keep the repository path explicit:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
REPO_ROOT=/path/to/speechall-n8n-node
|
|
64
|
+
cd /tmp/speechall-n8n-ui/.n8n/nodes
|
|
65
|
+
npm install "$REPO_ROOT/n8n-nodes-speechall-0.1.0.tgz" --ignore-scripts
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Development hot-reload mode
|
|
69
|
+
|
|
70
|
+
The package also supports `n8n-node dev`:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
nvm use
|
|
74
|
+
npm run dev -- --custom-user-folder /tmp/speechall-n8n-ui
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
This mode is useful while editing node descriptions or operation code, but it may register a temporary development node type such as `CUSTOM.speechall`. If n8n reports `Unrecognized node type: CUSTOM.speechall`, stop the dev server and use the packed-node flow above.
|
|
78
|
+
|
|
79
|
+
### Quick smoke test
|
|
80
|
+
|
|
81
|
+
1. Create a **Speechall API** credential and run the credential test.
|
|
82
|
+
2. Create `Manual Trigger -> Speechall`.
|
|
83
|
+
3. Run **List Speech-to-Text Models** and confirm one item is returned per model.
|
|
84
|
+
4. Run **Transcribe a Remote URL** with a public MP3 URL and confirm output includes `text`, `outputFormat`, `model`, `source: "remote_url"`, and `sourceUrlSanitized`.
|
|
85
|
+
5. Keep **Include Source URL in Output** disabled unless you intentionally want the full URL in output.
|
|
86
|
+
|
|
87
|
+
## Credentials
|
|
88
|
+
|
|
89
|
+
Create a **Speechall API** credential and paste your Speechall API key into the masked **API Key** field. The credential sends requests to `https://api.speechall.com/v1` with a Bearer token and tests access by calling `/speech-to-text-models`.
|
|
90
|
+
|
|
91
|
+
## Operations
|
|
92
|
+
|
|
93
|
+
### Transcribe a File
|
|
94
|
+
|
|
95
|
+
Transcribes audio from n8n binary data using `POST /transcribe`.
|
|
96
|
+
|
|
97
|
+
Important fields:
|
|
98
|
+
|
|
99
|
+
- `Binary Property`: Defaults to `data`.
|
|
100
|
+
- `Model Selection`: Choose a model from Speechall or enter a model ID manually.
|
|
101
|
+
- `Language`: Defaults to `en`; use `auto` where supported.
|
|
102
|
+
- `Output Format`: `text`, `json_text`, `json`, `srt`, or `vtt`.
|
|
103
|
+
- `Also Return as Binary File`: Adds `.txt`, `.srt`, or `.vtt` transcript binary output.
|
|
104
|
+
|
|
105
|
+
### Transcribe a Remote URL
|
|
106
|
+
|
|
107
|
+
Transcribes a public HTTP or HTTPS audio URL using `POST /transcribe-remote`.
|
|
108
|
+
|
|
109
|
+
Remote URL output includes `source: "remote_url"` and `sourceUrlSanitized` by default. The full `fileUrl` is included only when **Include Source URL in Output** is enabled, because signed storage URLs can contain secrets.
|
|
110
|
+
|
|
111
|
+
Remote URL transcription also supports inline replacement rules:
|
|
112
|
+
|
|
113
|
+
- Exact match
|
|
114
|
+
- Regex
|
|
115
|
+
- Regex group replacements
|
|
116
|
+
|
|
117
|
+
### List Speech-to-Text Models
|
|
118
|
+
|
|
119
|
+
Calls `GET /speech-to-text-models`, applies optional client-side filters, and returns one n8n item per model. The dynamic model dropdown uses the same endpoint, while manual model ID mode remains available if model loading fails.
|
|
120
|
+
|
|
121
|
+
## Output Formats
|
|
122
|
+
|
|
123
|
+
- `text`: Plain transcript text.
|
|
124
|
+
- `json_text`: JSON response with transcript text and metadata.
|
|
125
|
+
- `json`: Detailed JSON, preserving segments, words, timestamps, speaker labels, and provider metadata.
|
|
126
|
+
- `srt`: SRT subtitles.
|
|
127
|
+
- `vtt`: WebVTT subtitles.
|
|
128
|
+
|
|
129
|
+
Text-like responses are normalized into item JSON with `text`, `outputFormat`, `model`, `language`, and `source`. Detailed JSON responses preserve unknown Speechall/provider fields.
|
|
130
|
+
|
|
131
|
+
## Advanced Options
|
|
132
|
+
|
|
133
|
+
The transcription operations expose punctuation, diarization, initial prompt, temperature, expected speaker count, custom vocabulary terms, reusable `ruleset_id`, and request timeout. Provider and model support varies; unsupported combinations are surfaced as Speechall API errors.
|
|
134
|
+
|
|
135
|
+
The default request timeout is 300 seconds and can be set from 1 to 900 seconds. n8n instance-level workflow execution timeouts may still end long-running executions. For large hosted files, prefer **Transcribe a Remote URL** to avoid moving large binary data through n8n memory.
|
|
136
|
+
|
|
137
|
+
## OpenAI-Compatible Endpoint
|
|
138
|
+
|
|
139
|
+
Speechall also offers OpenAI-compatible transcription APIs for generic HTTP/OpenAI-shaped workflows. This dedicated Speechall node v1 intentionally exposes Speechall-native operations only.
|
|
140
|
+
|
|
141
|
+
## Troubleshooting
|
|
142
|
+
|
|
143
|
+
- `401`: Invalid or missing Speechall API key.
|
|
144
|
+
- `402`: API key may be valid, but the Speechall account has a billing or credit issue.
|
|
145
|
+
- `429`: Rate limit exceeded; retry guidance is preserved when Speechall sends `Retry-After`.
|
|
146
|
+
- `504`: Upstream transcription provider timed out.
|
|
147
|
+
- Missing binary data: Check the incoming item has the configured binary property.
|
|
148
|
+
- Remote URL errors: Confirm the URL is public and starts with `http://` or `https://`.
|
|
149
|
+
|
|
150
|
+
## Example Workflows
|
|
151
|
+
|
|
152
|
+
- [Google Drive audio to transcript](examples/google-drive-audio-to-transcript.json)
|
|
153
|
+
- [Webhook audio upload to JSON transcript](examples/webhook-audio-upload-to-json-transcript.json)
|
|
154
|
+
- [Remote podcast URL to SRT](examples/remote-podcast-url-to-srt.json)
|
|
155
|
+
- [Meeting recording to diarized transcript](examples/meeting-recording-to-diarized-transcript.json)
|
|
156
|
+
|
|
157
|
+
## Support
|
|
158
|
+
|
|
159
|
+
Speechall documentation: https://docs.speechall.com
|
|
160
|
+
|
|
161
|
+
Repository: https://github.com/Speechall/speechall-n8n-node
|
|
162
|
+
|
|
163
|
+
## License
|
|
164
|
+
|
|
165
|
+
MIT
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ICredentialTestRequest, ICredentialType, IAuthenticateGeneric, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class SpeechallApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: {
|
|
6
|
+
readonly light: "file:../nodes/Speechall/speechall.svg";
|
|
7
|
+
readonly dark: "file:../nodes/Speechall/speechall.dark.svg";
|
|
8
|
+
};
|
|
9
|
+
documentationUrl: string;
|
|
10
|
+
properties: INodeProperties[];
|
|
11
|
+
authenticate: IAuthenticateGeneric;
|
|
12
|
+
test: ICredentialTestRequest;
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpeechallApi = void 0;
|
|
4
|
+
class SpeechallApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'speechallApi';
|
|
7
|
+
this.displayName = 'Speechall API';
|
|
8
|
+
this.icon = {
|
|
9
|
+
light: 'file:../nodes/Speechall/speechall.svg',
|
|
10
|
+
dark: 'file:../nodes/Speechall/speechall.dark.svg',
|
|
11
|
+
};
|
|
12
|
+
this.documentationUrl = 'https://docs.speechall.com';
|
|
13
|
+
this.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'API Key',
|
|
16
|
+
name: 'apiKey',
|
|
17
|
+
type: 'string',
|
|
18
|
+
typeOptions: {
|
|
19
|
+
password: true,
|
|
20
|
+
},
|
|
21
|
+
default: '',
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
this.authenticate = {
|
|
26
|
+
type: 'generic',
|
|
27
|
+
properties: {
|
|
28
|
+
headers: {
|
|
29
|
+
Authorization: '=Bearer {{$credentials?.apiKey}}',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
this.test = {
|
|
34
|
+
request: {
|
|
35
|
+
baseURL: 'https://api.speechall.com/v1',
|
|
36
|
+
url: '/speech-to-text-models',
|
|
37
|
+
method: 'GET',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.SpeechallApi = SpeechallApi;
|
|
43
|
+
//# sourceMappingURL=SpeechallApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeechallApi.credentials.js","sourceRoot":"","sources":["../../credentials/SpeechallApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,SAAI,GAAG;YACN,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,4CAA4C;SACzC,CAAC;QAEX,qBAAgB,GAAG,4BAA4B,CAAC;QAEhD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,kCAAkC;iBACjD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,8BAA8B;gBACvC,GAAG,EAAE,wBAAwB;gBAC7B,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAzCD,oCAyCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
import { getSpeechToTextModels } from './loadOptions/getSpeechToTextModels';
|
|
3
|
+
export declare class Speechall implements INodeType {
|
|
4
|
+
description: INodeTypeDescription;
|
|
5
|
+
methods: {
|
|
6
|
+
loadOptions: {
|
|
7
|
+
getSpeechToTextModels: typeof getSpeechToTextModels;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Speechall = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const SpeechToText_description_1 = require("./descriptions/SpeechToText.description");
|
|
6
|
+
const getSpeechToTextModels_1 = require("./loadOptions/getSpeechToTextModels");
|
|
7
|
+
const listModels_operation_1 = require("./operations/listModels.operation");
|
|
8
|
+
const transcribeFile_operation_1 = require("./operations/transcribeFile.operation");
|
|
9
|
+
const transcribeRemoteUrl_operation_1 = require("./operations/transcribeRemoteUrl.operation");
|
|
10
|
+
const errors_1 = require("./transport/errors");
|
|
11
|
+
class Speechall {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.description = {
|
|
14
|
+
displayName: 'Speechall',
|
|
15
|
+
name: 'speechall',
|
|
16
|
+
icon: { light: 'file:speechall.svg', dark: 'file:speechall.dark.svg' },
|
|
17
|
+
group: ['transform'],
|
|
18
|
+
version: 1,
|
|
19
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
20
|
+
description: 'Transcribe audio using Speechall',
|
|
21
|
+
defaults: {
|
|
22
|
+
name: 'Speechall',
|
|
23
|
+
},
|
|
24
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
25
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
26
|
+
usableAsTool: true,
|
|
27
|
+
credentials: [
|
|
28
|
+
{
|
|
29
|
+
name: 'speechallApi',
|
|
30
|
+
required: true,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
properties: SpeechToText_description_1.speechToTextProperties,
|
|
34
|
+
};
|
|
35
|
+
this.methods = {
|
|
36
|
+
loadOptions: {
|
|
37
|
+
getSpeechToTextModels: getSpeechToTextModels_1.getSpeechToTextModels,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
async execute() {
|
|
42
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
43
|
+
if (operation === 'listModels') {
|
|
44
|
+
return [await listModels_operation_1.listModelsOperation.call(this)];
|
|
45
|
+
}
|
|
46
|
+
const items = this.getInputData();
|
|
47
|
+
const returnData = [];
|
|
48
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
49
|
+
try {
|
|
50
|
+
if (operation === 'transcribeFile') {
|
|
51
|
+
returnData.push(await transcribeFile_operation_1.transcribeFileOperation.call(this, items[itemIndex], itemIndex));
|
|
52
|
+
}
|
|
53
|
+
else if (operation === 'transcribeRemoteUrl') {
|
|
54
|
+
returnData.push(await transcribeRemoteUrl_operation_1.transcribeRemoteUrlOperation.call(this, items[itemIndex], itemIndex));
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported Speechall operation: ${operation}`, {
|
|
58
|
+
itemIndex,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
if (this.continueOnFail()) {
|
|
64
|
+
returnData.push({
|
|
65
|
+
json: {
|
|
66
|
+
error: (0, errors_1.getErrorMessage)(error),
|
|
67
|
+
},
|
|
68
|
+
pairedItem: { item: itemIndex },
|
|
69
|
+
});
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
throw (0, errors_1.toNodeOperationError)(this, error, itemIndex);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return [returnData];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.Speechall = Speechall;
|
|
79
|
+
//# sourceMappingURL=Speechall.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Speechall.node.js","sourceRoot":"","sources":["../../../nodes/Speechall/Speechall.node.ts"],"names":[],"mappings":";;;AAMA,+CAAuE;AAEvE,sFAAiF;AACjF,+EAA4E;AAC5E,4EAAwE;AACxE,oFAAgF;AAChF,8FAA0F;AAC1F,+CAA2E;AAE3E,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACtE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE,iDAAsB;SAClC,CAAC;QAEF,YAAO,GAAG;YACT,WAAW,EAAE;gBACZ,qBAAqB,EAArB,6CAAqB;aACrB;SACD,CAAC;IA6CH,CAAC;IA3CA,KAAK,CAAC,OAAO;QACZ,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAElE,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;YAChC,OAAO,CAAC,MAAM,0CAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAClC,MAAM,UAA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
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Utility"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://docs.speechall.com"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://docs.speechall.com"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.speechToTextProperties = void 0;
|
|
4
|
+
const fields_1 = require("../helpers/fields");
|
|
5
|
+
const speechToTextResource = {
|
|
6
|
+
show: {
|
|
7
|
+
resource: ['speechToText'],
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
const transcribeFile = {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['speechToText'],
|
|
13
|
+
operation: ['transcribeFile'],
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const transcribeRemoteUrl = {
|
|
17
|
+
show: {
|
|
18
|
+
resource: ['speechToText'],
|
|
19
|
+
operation: ['transcribeRemoteUrl'],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const listModels = {
|
|
23
|
+
show: {
|
|
24
|
+
resource: ['speechToText'],
|
|
25
|
+
operation: ['listModels'],
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
exports.speechToTextProperties = [
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Resource',
|
|
31
|
+
name: 'resource',
|
|
32
|
+
type: 'options',
|
|
33
|
+
noDataExpression: true,
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Speech-to-Text',
|
|
37
|
+
value: 'speechToText',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
default: 'speechToText',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Operation',
|
|
44
|
+
name: 'operation',
|
|
45
|
+
type: 'options',
|
|
46
|
+
noDataExpression: true,
|
|
47
|
+
displayOptions: speechToTextResource,
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
name: 'List Speech-to-Text Models',
|
|
51
|
+
value: 'listModels',
|
|
52
|
+
action: 'List speech to text models',
|
|
53
|
+
description: 'List available Speechall speech-to-text models',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Transcribe a File',
|
|
57
|
+
value: 'transcribeFile',
|
|
58
|
+
action: 'Transcribe a file',
|
|
59
|
+
description: 'Transcribe audio from n8n binary data',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Transcribe a Remote URL',
|
|
63
|
+
value: 'transcribeRemoteUrl',
|
|
64
|
+
action: 'Transcribe a remote URL',
|
|
65
|
+
description: 'Transcribe audio from a public URL',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
default: 'transcribeFile',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Binary Property',
|
|
72
|
+
name: 'binaryPropertyName',
|
|
73
|
+
type: 'string',
|
|
74
|
+
default: 'data',
|
|
75
|
+
required: true,
|
|
76
|
+
description: 'Name of the binary property that contains the audio file',
|
|
77
|
+
displayOptions: transcribeFile,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'File URL',
|
|
81
|
+
name: 'fileUrl',
|
|
82
|
+
type: 'string',
|
|
83
|
+
default: '',
|
|
84
|
+
required: true,
|
|
85
|
+
placeholder: 'https://example.com/audio.mp3',
|
|
86
|
+
description: 'Publicly accessible HTTP or HTTPS URL for the audio file',
|
|
87
|
+
displayOptions: transcribeRemoteUrl,
|
|
88
|
+
},
|
|
89
|
+
...(0, fields_1.modelSelectionFields)(transcribeFile),
|
|
90
|
+
...(0, fields_1.modelSelectionFields)(transcribeRemoteUrl),
|
|
91
|
+
(0, fields_1.languageField)(transcribeFile),
|
|
92
|
+
(0, fields_1.languageField)(transcribeRemoteUrl),
|
|
93
|
+
(0, fields_1.transcriptOutputFormatField)(transcribeFile),
|
|
94
|
+
(0, fields_1.transcriptOutputFormatField)(transcribeRemoteUrl),
|
|
95
|
+
...(0, fields_1.advancedTranscriptionFields)(transcribeFile),
|
|
96
|
+
...(0, fields_1.advancedTranscriptionFields)(transcribeRemoteUrl),
|
|
97
|
+
(0, fields_1.replacementRulesField)(transcribeRemoteUrl),
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Include Source URL in Output',
|
|
100
|
+
name: 'includeSourceUrl',
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
default: false,
|
|
103
|
+
description: 'Whether to include the full remote URL in output. Signed URLs may contain secrets.',
|
|
104
|
+
displayOptions: transcribeRemoteUrl,
|
|
105
|
+
},
|
|
106
|
+
...(0, fields_1.binaryOutputFields)(transcribeFile),
|
|
107
|
+
...(0, fields_1.binaryOutputFields)(transcribeRemoteUrl),
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Provider',
|
|
110
|
+
name: 'provider',
|
|
111
|
+
type: 'string',
|
|
112
|
+
default: '',
|
|
113
|
+
description: 'Only return models from this provider',
|
|
114
|
+
displayOptions: listModels,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Available Only',
|
|
118
|
+
name: 'availableOnly',
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
default: false,
|
|
121
|
+
description: 'Whether to only return models currently marked available',
|
|
122
|
+
displayOptions: listModels,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Supports Diarization',
|
|
126
|
+
name: 'supportsDiarization',
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
default: false,
|
|
129
|
+
displayOptions: listModels,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Supports SRT',
|
|
133
|
+
name: 'supportsSrt',
|
|
134
|
+
type: 'boolean',
|
|
135
|
+
default: false,
|
|
136
|
+
displayOptions: listModels,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Supports VTT',
|
|
140
|
+
name: 'supportsVtt',
|
|
141
|
+
type: 'boolean',
|
|
142
|
+
default: false,
|
|
143
|
+
displayOptions: listModels,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Supports Streaming',
|
|
147
|
+
name: 'supportsStreaming',
|
|
148
|
+
type: 'boolean',
|
|
149
|
+
default: false,
|
|
150
|
+
description: 'Whether to only return models that support streaming metadata',
|
|
151
|
+
displayOptions: listModels,
|
|
152
|
+
},
|
|
153
|
+
];
|
|
154
|
+
//# sourceMappingURL=SpeechToText.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeechToText.description.js","sourceRoot":"","sources":["../../../../nodes/Speechall/descriptions/SpeechToText.description.ts"],"names":[],"mappings":";;;AAEA,8CAO2B;AAE3B,MAAM,oBAAoB,GAAG;IAC5B,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,cAAc,CAAC;KAC1B;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,cAAc,CAAC;QAC1B,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC7B;CACD,CAAC;AAEF,MAAM,mBAAmB,GAAG;IAC3B,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,cAAc,CAAC;QAC1B,SAAS,EAAE,CAAC,qBAAqB,CAAC;KAClC;CACD,CAAC;AAEF,MAAM,UAAU,GAAG;IAClB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,cAAc,CAAC;QAC1B,SAAS,EAAE,CAAC,YAAY,CAAC;KACzB;CACD,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EA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