Giter VIP home page Giter VIP logo

symbl-swift-sdk's Introduction

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()

symbl-swift-sdk's People

Contributors

subodhjena avatar subodhjenasymbl avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

subodhjenasymbl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.