11
Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University Department of Computer Science Grant KA179 “Complex development of regional cooperation in the field of open ICT innovations” of Karelia ENPI CBC programme 2007–2013 of the European Union, the Russian Federation and the Republic of Finland 15 th FRUCT Conference April 24, 2014, St.-Petersburg, Russia Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 1 / 11

Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

  • Upload
    others

  • View
    6

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Android Smartphone as a Microphonein SmartRoom System

Pavel Y. Kovyrshin, Dmitry G. Korzun

Petrozavodsk State UniversityDepartment of Computer Science

Grant KA179 “Complex development of regional cooperation in the fieldof open ICT innovations” of Karelia ENPI CBC programme 2007–2013 of the European Union,the Russian Federation and the Republic of Finland

15th FRUCT ConferenceApril 24, 2014, St.-Petersburg, Russia

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 1 / 11

Page 2: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

SmartRoom System Services

Centralized data storage (SIB: Semantic Information Broker)Many mobile clients

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 2 / 11

Page 3: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Microphone-service: High Level Architecture

JNI - enables Java to usenative implementations

SmartSlog - provides API forSmart Space interaction

JSpeex - audio processingJava module

DatagramSocket - Javaimplementation of UDP protocol

User Datagram Protocol (UDP) is more suitable for such streamingapplications like Microphone-service.

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 3 / 11

Page 4: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Microphone-service: Knowledge Processor

Service is implemented as a single KPSmartSlog: SDK for KP developmentOntology: service representation model (OWL, RDF)

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 4 / 11

Page 5: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Microphone-service: Workflow Scheme

1 Initialization

2 Publishing address

3 Listening for connections

4 Receiving andprocessing data

5 Playing audio flow

Development: Microphone-service KP (server) and Client KP

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 5 / 11

Page 6: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Android Client: Architecture

User interface Java-basedmodule uses Android SDK

JNI enables Java to usenative implementations

Application logic is C writtenand supported by Android NDK

SmartSlog supportsontology-driven implementation:

I publication and extraction dataI subscription mechanismI connection state tracking

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 6 / 11

Page 7: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Android Client for SmartRoom: User Interface

Mobile device becomes a microphoneUsers: current speaker and chairman

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 7 / 11

Page 8: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Performance ExperimentsWireless network quality strongly influences on service performance.

Network transmissionAudio processing

Average Standard deviationτ̄ = 50 ms σ = 6 ms ≈ 15 ms

Figure: Transmission time of 500 UDP packets of 62 bytes

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 8 / 11

Page 9: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Performance: Our Solutions

Audio processing: JSpeex codecI based on CELP algorithmI well-suited to handle VoIPI suitable for unreliable transfer packets network

UDP for real-time audio transferRouter configuration: selection of less used network channel

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 9 / 11

Page 10: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Metrics of Implementation

Client side Server sideJava code, loc. 138 293C code, loc. 91 84Devices Samsung Galaxy S3 Notebook Asus x200ca

D-Link DIR-320 routerTools SmartSlog SDK, JSpeex

Android SDK/NDK, JNI

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 10 / 11

Page 11: Android Smartphone as a Microphone in SmartRoom System -0 · Android Smartphone as a Microphone in SmartRoom System Pavel Y. Kovyrshin, Dmitry G. Korzun Petrozavodsk State University

Conclusion

Released server (Linux) and client (Android) KPs

Performance: solutions and experimental evaluation

SourceForge:http://sourceforge.net/projects/smartroom/

files/services/microphone-service/

Project Wiki:http://oss.fruct.org/wiki/SmartRoom

Android client:http://play.google.com/store/apps/details

?id=petrsu.smartroom.android.srclient

My e-mail: [email protected]

Pavel Kovyrshin Microphone Service for SmartRoom FRUCT15 11 / 11