Swiftpack.co - subodhjena/symbl-swift-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by subodhjena.
subodhjena/symbl-swift-sdk 0.1.1
Symbl Swift SDK
⭐️ 2
🕓 1 year ago
iOS macOS tvOS
.package(url: "https://github.com/subodhjena/symbl-swift-sdk.git", from: "0.1.1")

Symbl

Symbl Swift SDK (Note: WIP)

Build and Test

Swift SDK to add symbl's api cababilities to your iOS, iPad and Mac apps

Features

Demo app

A sample iOS built using this SDK could be found here - https://github.com/subodhjena/symbl-demo-ios

Installation

Please use Swift Package Manager

Repository address: [email protected]:subodhjena/symbl-swift-sdk.git or https://github.com/subodhjena/symbl-swift-sdk.git

Usage

Follow the below steps

Initialize the SDK

let symbl = Symbl(accessToken: accessToken)

Implement the delegate to start receiving data, remember to implement the protocol methods, they receive all the conversation intellegence

class SymblDelegate: SymblRealtimeDelegate {
    func symblRealtimeConnected() { print("Connected") }
    func symblRealtimeDisonnected() { print("Disconncted")}
    func symblReceivedMessage(message: SymblMessage){ print("Message") }
    func symblReceivedMessageResponse(messageResponse:SymblMessageResponse) { print("MessageResponse") }
    func symblReceivedToipcResponse(topicResponse:SymblTopicResponse){ print("TopicResponse") }
    func symblReceivedActionItems(actionItems: [SymblInsight]) { print("Action Items") }
    func symblReceivedQuestions(questions: [SymblInsight]) { print("Questions") }
    func symblReceivedFollowUps(followUps: [SymblInsight]) { print("Follow ups") }
}

Initialize the realtime session

// Create the delegte to start receiving data
let symblRealtimeDelegate = SymblDelegate()

// Initialize the realtime streaming session
symbl.initializeRealtimeSession(meetingId: uniqueMeetingId, delegate: symblRealtimeDelegate)

// Connect the realtime streaming session
symbl.realtimeSession.connect()

Start request

// Sample iOS request
// Pass in an instance of start request

let startRequest = SymblStartRequest (...)
symbl.realtimeSession.startRequest(startRequest)

You can pass the audio chunks to streamAudio() function and start getting the analytics

symbl.realtimeSession.streamAudio(data: data)

Make sure to stop the connection before closing the streaming session

symbl.realtimeSession.disconnect()

GitHub

link
Stars: 2
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.1.1
1 year ago

Generating a new release for testing release workflow

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics