mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00: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:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user