LiveData Conversation Intelligence
Updated
Integrate and use the LiveData Conversation Intelligence extension in your Android or iOS app.
The LiveData Conversation Intelligence extension enables you to quickly add real-time speech transcription and translation features to your app.
This page shows you how to integrate and use the extension in your app.
Understand the tech
The extension is an encapsulation of a cloud real-time speech recognition and translation API. You can integrate its capabilities by passing the specified key and value parameters to the setExtensionPropertyWithVendor method provided by the Video SDK.
Prerequisites
- Xcode 9.0 or later.
- A physical device (not an emulator) running iOS 9.0 or later.
- Integrated the Video SDK and implemented basic video calling, see SDK quickstart.
Project setup
-
Clone the sample repository:
git clone https://github.com/highras/rtvt-agora-marketplace.git -
Enter
iOS/SW_Testand run:pod install -
Open
SW_Test.xcworkspacein Xcode. -
Connect a real iOS device and run the project.
Integrate the extension
Add the extension package
-
Download the extension package from Extensions Marketplace.
-
Save all
.frameworkfiles to your project folder. -
Add the dynamic libraries in Xcode and make sure Embed is set to Embed & Sign.
-
Add
-ObjCto Other Linker Flags.
Enable the extension
AgoraRtcEngineConfig *config = [AgoraRtcEngineConfig new];
config.eventDelegate = self;
self.agoraKit = [AgoraRtcEngineKit sharedEngineWithConfig:config delegate:self];
[self.kit enableExtensionWithVendor:[iLiveDataSimpleFilterManager companyName]
extension:[iLiveDataSimpleFilterManager plugName]
enabled:YES];Start transcription and translation
Use setExtensionPropertyWithVendor with the startAudioTranslation key and a JSON string containing appKey, appSecret, srcLanguage, and destLanguage.
Get transcription and translation results
After successful initialization, the extension returns transcription and translation results through the onEvent callback.
Stop using the extension
Use setExtensionPropertyWithVendor with the closeAudioTranslation key.
