Updating the message model

Next, we are going to update our message model. We are going to save the transcription results and Cloudinary upload details as well in the message, similar to what we did with the Cloud Vision API response. Update server/models/message.ts as shown here:

// SNIPP SNIPP
explicitVideoAnnotation: [{
type: Schema.Types.Mixed,
default: []
}],
segmentLabelAnnotations: [{
type: Schema.Types.Mixed,
default: []
}],
transcriptions: [{
type: Schema.Types.Mixed,
default: []
}]
// SNIPP SNIPP
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.24.106