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 SNIPPexplicitVideoAnnotation: [{        type: Schema.Types.Mixed,        default: []    }],    segmentLabelAnnotations: [{        type: Schema.Types.Mixed,        default: []    }],    transcriptions: [{        type: Schema.Types.Mixed,        default: []    }]// SNIPP SNIPP

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.