mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
wip
This commit is contained in:
@@ -547,12 +547,14 @@ const normalizeVerbio = (evt, channel, language) => {
|
|||||||
|
|
||||||
const normalizeElevenlabs = (evt, channel, language) => {
|
const normalizeElevenlabs = (evt, channel, language) => {
|
||||||
const copy = JSON.parse(JSON.stringify(evt));
|
const copy = JSON.parse(JSON.stringify(evt));
|
||||||
console.log(copy);
|
|
||||||
return {
|
return {
|
||||||
language_code: language,
|
language_code: language,
|
||||||
channel_tag: channel,
|
channel_tag: channel,
|
||||||
is_final: evt.is_final,
|
is_final: evt.message_type === 'committed_transcript',
|
||||||
alternatives: evt.alternatives,
|
alternatives: {
|
||||||
|
confidence: 1.0,
|
||||||
|
transcript: evt.text,
|
||||||
|
},
|
||||||
vendor: {
|
vendor: {
|
||||||
name: 'elevenlabs',
|
name: 'elevenlabs',
|
||||||
evt: copy
|
evt: copy
|
||||||
|
|||||||
Reference in New Issue
Block a user