File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export const transcription = functions
69
69
// If there is one authenticated event, pull out the parts we want to
70
70
// save and try to save them in the db.
71
71
72
- const { sentences } = await assembly . transcripts . sentences (
72
+ const { paragraphs } = await assembly . transcripts . paragraphs (
73
73
transcript . id
74
74
)
75
75
const { id, text, audio_url, utterances } = transcript
@@ -107,16 +107,16 @@ export const transcription = functions
107
107
await writer . close ( )
108
108
}
109
109
110
- if ( sentences ) {
110
+ if ( paragraphs ) {
111
111
const writer = db . bulkWriter ( )
112
- for ( let sentence of sentences ) {
113
- const { confidence, start, end, text } = sentence
112
+ for ( let paragraph of paragraphs ) {
113
+ const { confidence, start, end, text } = paragraph
114
114
115
115
writer . set (
116
116
db
117
117
. collection ( "transcriptions" )
118
118
. doc ( `${ transcript . id } ` )
119
- . collection ( "sentences " )
119
+ . collection ( "paragraphs " )
120
120
. doc ( ) ,
121
121
{ confidence, start, end, text }
122
122
)
You can’t perform that action at this time.
0 commit comments