mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
🐛 Fix settings in AWS Transcribe node (#1860)
* Fixe uninitialized object when settings enabled * 👕 Fix linter warning * ⚡ Fix options name * 🔥 Remove unused setting * ⚡ Improvements Co-authored-by: Alexander Mustafin <sashker@users.noreply.github.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
parent
114fd3b3a6
commit
26bdc5c924
|
@ -426,6 +426,7 @@ export class AwsTranscribe implements INodeType {
|
|||
Media: {
|
||||
MediaFileUri: mediaFileUri,
|
||||
},
|
||||
Settings: {},
|
||||
};
|
||||
|
||||
if (detectLang) {
|
||||
|
@ -438,16 +439,16 @@ export class AwsTranscribe implements INodeType {
|
|||
Object.assign(body.Settings, { ChannelIdentification: options.channelIdentification });
|
||||
}
|
||||
|
||||
if (options.MaxAlternatives) {
|
||||
if (options.maxAlternatives) {
|
||||
Object.assign(body.Settings, {
|
||||
ShowAlternatives: options.maxAlternatives,
|
||||
ShowAlternatives: true,
|
||||
MaxAlternatives: options.maxAlternatives,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (options.showSpeakerLabels) {
|
||||
if (options.maxSpeakerLabels) {
|
||||
Object.assign(body.Settings, {
|
||||
ShowSpeakerLabels: options.showSpeakerLabels,
|
||||
ShowSpeakerLabels: true,
|
||||
MaxSpeakerLabels: options.maxSpeakerLabels,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue