From 807843436d99d0dfe20c49c73abde0d51d0d93f9 Mon Sep 17 00:00:00 2001 From: Kwangsoo Yeo Date: Thu, 23 Nov 2023 15:26:05 -0800 Subject: [PATCH] update demo --- demo/react-native/src/App.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/react-native/src/App.tsx b/demo/react-native/src/App.tsx index 44b8b868..ae16c36f 100644 --- a/demo/react-native/src/App.tsx +++ b/demo/react-native/src/App.tsx @@ -96,7 +96,10 @@ export default class App extends Component { this._leopard = await Leopard.create( this._accessKey, `models/leopard_params${suffix}.pv`, - { enableAutomaticPunctuation: true }, + { + enableAutomaticPunctuation: true, + enableDiarization: true + }, ); } catch (err: any) { this.handleError(err); @@ -261,7 +264,7 @@ export default class App extends Component { Start End Confidence - Speaker Tag + Tag {this.state.words.map((word: LeopardWord, index: number) =>