COMPREHENSIVE MATLAB TOOL FOR HRTF MEASUREMENT AND VIRTUAL AUDITORY SPACE TESTING



Similar documents
AUDIO POINTER V2 JOYSTICK & CAMERA IN MATLAB

PURE TONE AUDIOMETER

Convention Paper Presented at the 112th Convention 2002 May Munich, Germany

Effects of microphone arrangement on the accuracy of a spherical microphone array (SENZI) in acquiring high-definition 3D sound space information

Room Acoustic Reproduction by Spatial Room Response

MJPEG Camera Client User Manual

What Audio Engineers Should Know About Human Sound Perception. Part 2. Binaural Effects and Spatial Hearing

Chapter 5 Understanding Input. Discovering Computers Your Interactive Guide to the Digital World

Analysis One Code Desc. Transaction Amount. Fiscal Period

THE SIMULATION OF MOVING SOUND SOURCES. John M. Chowning

HEAD acoustics. Standards on Audio Quality - from a system-level view. H. W. Gierlich HEAD acoustics GmbH.

Chapter 3 Input Devices

LEN s.r.l. Via S. Andrea di Rovereto 33 c.s CHIAVARI (GE) Tel Fax mailto: len@len.it url: http//

Summary Table Voluntary Product Accessibility Template. Not Applicable- Not a web-based application. Supports. Not Applicable

ABOVE ALL WAS THE SENSE OF HEARING

Perfect Fit In Ear Earphones Ergonomic Series

How To Use A Desktop Computer

3D sound in the telepresence project BEAMING Olesen, Søren Krarup; Markovic, Milos; Madsen, Esben; Hoffmann, Pablo Francisco F.; Hammershøi, Dorte

Unit A451: Computer systems and programming. Section 2: Computing Hardware 4/5: Input and Output Devices

A Sound Localization Algorithm for Use in Unmanned Vehicles

Barcode Based Automated Parking Management System

HIGH QUALITY AUDIO RECORDING IN NOKIA LUMIA SMARTPHONES. 1 Nokia 2013 High quality audio recording in Nokia Lumia smartphones

Poker Vision: Playing Cards and Chips Identification based on Image Processing

Multichannel stereophonic sound system with and without accompanying picture

G.A.L. HANDS FREE EMERGENCY TELEPHONE MODEL GAL-6400

A Mobile Augmented Reality Audio System with Binaural. microphones

Cisco compatibility. Sennheiser Communications solutions overview

XCal-View user manual

Introduction Configuring Your HP Mouse Batteries Replacing the Batteries Mouse Sensor Technology Navigating the HP Mouse Control Center

VPAT for Apple MacBook Pro (Late 2013)

PS 29M DUAL CHANNEL BELTPACK IN METAL CASE

RECOMMENDATION ITU-R BR *, ** Parameters for international exchange of multi-channel sound recordings with or without accompanying picture ***

User Manual. For additional help please send a detailed to Support@phnxaudio.com. - 1 Phoenix Audio Technologies

Discovering Computers. Technology in a World of Computers, Mobile Devices, and the Internet. Chapter 7. Input and Output

Marketing tools to support university library s mission

User Manual Gigabit Ethernet Vision Quick Start Guide

DCN Next Generation The next step in digital congress management

Summary Table Voluntary Product Accessibility Template. Criteria Supporting Features Remarks and explanations

SPATIAL AUDIO TELECONFERENCING - WHICH WAY IS BETTER?

Manual Client Management Software HDR50-CMS

A mixed structural modeling approach to personalized binaural sound rendering

Chapter 5 Objectives. Chapter 5 Input

Mouse Control using a Web Camera based on Colour Detection

Search keywords: Connect, Meeting, Collaboration, Voice over IP, VoIP, Acoustic Magic, audio, web conferencing, microphone, best practices

Appendix A. CMS(Client Management Software)

inc.jet Software Solutions Design, Control and Monitor

Dirac Live & the RS20i

Speech Signal Processing: An Overview

Door Phone VoIP. User manual IPDPS 01C IPDPS 02C IPDPS 01 IPDPS 02

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Tomorrow s Technology and You

Tutorial for Programming the LEGO MINDSTORMS NXT

(51) Int Cl.: H04S 3/00 ( )

Virtual Mouse Using a Webcam

Summary Table Voluntary Product Accessibility Template

Introduction to Computers, Anatomy of Computers, Input and Output Devices

TECHNICAL OPERATING SPECIFICATIONS

PRODUCT SHEET OUT1 SPECIFICATIONS

Enhance Security and Communication in Healthcare and Hospital Locations IP Indoor and Outdoor Video Intercoms and IP Paging Solutions

SE05: Getting Started with Cognex DataMan Bar Code Readers - Hands On Lab Werner Solution Expo April 8 & 9

Robotic Sensing. Guiding Undergraduate Research Projects. Arye Nehorai

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

A PHOTOGRAMMETRIC APPRAOCH FOR AUTOMATIC TRAFFIC ASSESSMENT USING CONVENTIONAL CCTV CAMERA

Make your own Temple Run game

ibaby Monitor Model: M3s User Manual

First Database of Audio-Visual Scenarios

All About Audio Metadata. The three Ds: dialogue level, dynamic range control, and downmixing

SwannEye HD Plug & Play Wi-Fi Security Camera Quick Start Guide Welcome! Lets get started.

MATLAB-based Applications for Image Processing and Image Quality Assessment Part II: Experimental Results

The recording angle based on localisation curves

// ipq-view Digital web viewing for your quality assurance. Be inspired. Move forward.

Audio and Video Synchronization:

Auburn University s Solar Photovoltaic Array Tilt Angle and Tracking Performance Experiment

EE289 Lab Fall LAB 4. Ambient Noise Reduction. 1 Introduction. 2 Simulation in Matlab Simulink

INVESTIGATION OF DEFORMATION BEHAVIOUR OF ALUMINIUM FOAM UNDER HIGH-STRAIN RATE LOADING AND COMPARISON WITH CONVENTIONAL ENERGY ABSORBING MATERIAL

Summary Table Voluntary Product Accessibility Template

Scripting Language Reference. SimpleBGC 32bit

A novel sharp beam-forming flat panel loudspeaker using digitally driven speaker system

DECT. DECT Density. Wireless Technology. and WHITE PAPER

Evaluation of Wireless, Digital, Audio-Streaming Accessories Designed for the Cochlear Nucleus 6 Sound Processor

Introduction. - Please be sure to read and understand Precautions and Introductions in CX-Simulator Operation Manual and

Step 1: Select the Start Menu, then Control Panel.

A System for Capturing High Resolution Images

Overview. Dolby PC Entertainment Experience v4

T O B C A T C A S E G E O V I S A T DETECTIE E N B L U R R I N G V A N P E R S O N E N IN P A N O R A MISCHE BEELDEN

Internet and Computing Core Certification Guide Module A Computing Fundamentals

3D Scanner using Line Laser. 1. Introduction. 2. Theory

"All-In-One" Video Conferencing Solution. Versatile Connectivity with DisplayPort

VPAT for Apple ipad Air 2

LAWAREC. Laser Warning Receiver

Step-by-Step RECD Guide

Sweet Adelines Microphone and Sound System Guidelines

The Keyboard One of the first peripherals to be used with a computer and is still the primary input device for text and numbers.

VPAT 1 Product: Call Center Hearing Aid Compatible (HAC) Headsets Operated with Amplifier Models M12, MX10, P10, or SQD:

Transcription:

COMPREHENSIVE MATLAB TOOL FOR HRTF MEASUREMENT AND VIRTUAL AUDITORY SPACE TESTING F. Rund, J. Bouše, T. Baráth Department of Radioelectronics, Faculty of Electrical Engineering, Czech Technical University in Prague, Czech Republic Abstract The virtual sound sources can be used for numerous purposes such as computer games, entertainment (film industry etc.) and more importantly assistive devices. The most straightforward method for the virtual sound source positioning is filtering of the input sound signal with Head Related Transfer Function (HRTF). The HRTF can be measured on the chosen subject or synthesized.when the measurement is done the HRTF must be verified whether is suitable for the purposes of the VAS. The aim of this paper is to simplify such measurements and verifications by using GUI made in the Matlab environment. 1 Introduction The virtual sound sources can be used for numerous purposes such as computer games, entertainment (film industry etc.) and more importantly assistive devices. The virtual sound sources can be positioned in a virtual auditory space (VAS) with various methods. The most straightforward method is filtering of the input sound signal with Head Related Transfer Function (HRTF). The HRTF can be measured on the chosen subject or synthesized [2], although measuring leads to better virtual sound space perception. Our setup for the HRTF measurement (Fig. 1), described in [1] and in further chapters, was designed to be maximally portable, so is very simple. The one of problems with the setup is how to control the angle (azimuth, elevation) from which the HRTF is measured. The problem we tried to solve with help of Matlab environment. When the measurement (or synthesis) is done the HRTF must be verified whether is suitable for the purposes of the VAS. For the testing of created VAS can also Matlab GUIs such as one described in our previous paper [3] used, but more reliable method was suggested in our paper [4]. Details about implementing of such a method in the Matlab environment are presented in this paper. Figure 1: A picture of the experimental setup

2 The system design Our experimental setup for HRTF measurement/verification consists of a custom made wideband loudspeaker and a rotational chair (Fig. 1). The azimuth is set by rotating the chair (and the subject), elevation by elevating the loudspeaker. Due to the fact that we used only one loudspeaker to measure/verify HRTF it was crucial and very time consuming to achieve the exact azimuth between the tested subject and loudspeaker. The rotating chair was originally equipped with a plate that had a degree scale carved into it. The chair also had a pointer which indicated the subjects azimuth. This setup required the azimuth to be read by a person (usually the experimenter), which is an inefficient way to measure HRIRs, or to measure the azimuth the subject was rotated to, and was updated to a more sophisticated setup. The initial idea was to use the grey code to measure the location of the subject, which would require the generation of the code on the circumference of a circle, so that it could be read by a bar-code reader. But at the end a more simple and also better method was chosen to use. Instead of the grey code, which would have a constant resolution once implemented, the chair rotation would be detected with a web camera that would detect the thickness of a test image (Fig. 2) placed on the plate, where the azimuths are carved. The Canyon CNR-WCAM820 web camera is used to detect the location. It was chosen for its simple design, which enables a simple implementation onto the chair and sufficient picture resolution. The evaluation of azimuths, as it was mentioned above, is done by the evaluation of the width of the test image. The images are cropped and the contrast is altered so that the number of black pixels can be counted. From this number the azimuth is found from a lookup table, that is generated depending on the width of the test image, at the initial position during the training phase. This setup can be used for the chair azimuth detection for both cases, measurement and testing, as is presented in next sections. Figure 2: The test image used to detect the azimuth

2.1 HRTF measurement In the case of the HRTF measurement, the subject is equipped with a pair of binaural microphones plugged in the middle ears. The test signal reproduced by the loudspeaker is at target azimuth recorded via these microphones. All of the standard methods for the transfer function measuring can be used as a test signal. The azimuth is changed by rotating the chair the subject is sitting on. The rotation of the chair is detected by the method mentioned above and monitored by a Matlab GUI (Fig. 3) where the actual azimuth is shown. User can choose two method of the measurement, automatic and user controlled. When the automatic method is chosen the list of target azimuth with chosen azimuth step by user is created and the subject is asked to match all azimuths from the list by rotating the chair. Due to that it could be very stressful for the test subjects to match the desired azimuth without any deviation of angle there is a option for user to set up his own maximal acceptable deviation for the measurement. To avoid false positive detection of target azimuth the 5 s duty cycle is inserted in the measurement loop and then again match between the target and actual azimuth is done, if the match maintain the measurement of the HRTF could be done else the subject is asked to try again. The operator of the measurement only informs the subject about his actual azimuth. Since this process could be another possible source of time consumption during measurement a separate window with actual and target azimuth could be open and showed to the subject on second display. Depending on the method of the HRIR measurement whole measurement can be done without help of an operator. Figure 3: The GUI for azimuth detection 2.2 VAS verification The setup to verify the created VAS is similar to the one used in the HRTF measurement (Fig. 1), as suggested in [4]. The only difference stays in the exchange of the binaural microphones by stereophonic earphones. The loudspeaker is used to reproduce the acoustic stimulus which acts as the acoustic pointer (reference position in space). The same stimulus but virtually positioned by filtering the original one by the measured HRTF is then presented to the subject via earphones. The subject is asked to spin the chair in order to match the position in space of both stimuli mentioned above. The principle of the method is apparent from the Fig. 4.

The test is conducted with ear-phones due to the fact, that headphones would significantly alter the sound coming from the reference speaker, which would make the task of localization more difficult. Moreover the HRIRs were measured at the entrance to the ear canal, thus it seems sensible to attempt and reproduce the binaural recording at the same place, thus eliminating the undesirable effects of the headphone transfer function. For our experiments, the Sennheiser MX 375 earphones were chosen, which have low attenuation and are small in size, so meets the requirements we stated. Due to the available equipment at our department the testing method is limited to testing of azimuths in a fixed elevations. If the elevation of the reference could be quickly adjusted by the subject (e.g. by means of a motorized stand) the method can be also extended to the elevation testing. The test procedure as well as the location detection are implemented in Matlab and follows the flowchart presented in Fig. 5. The procedure is based on the idea presented in [4], but was improved to increase reliability of the measurement and comfort of the subject. At the beginning, the subject undergoes a training phase when all the azimuths are presented in an incrementing manner. The end of the training phase is indicated by a single beep out of the reference speaker (to make the experimenter aware as well). During the training phase, the subject shall face the reference speaker (azimuth 0), as the reference image is taken by the web camera, that will be used for the location evaluation. This means that the location evaluation is implemented in a way, that the test image and the camera do not have to be in any particular position at the beginning of the test. Following the training phase, the subject shall try to match the position of the reference and the virtual source. In this phase, the subject is free to listen either to the reference, virtual source, or to indicate that the positions have been matched. Currently the indication is made using the keyboard: num1: play virtual source num2: play reference speaker num3: location matched, move on to the next azimuth Figure 4: Principle of the localization test

Figure 5: The test image used to detect the azimuth

Whenever the location is matched, the web camera takes a snapshot of the test image, and stores it for later evaluation. A double beep indicates that all locations have been found. At this point the subject is done with the test, and the script proceeds to the evaluation of the azimuths. Prior the test procedure, the experimenter has to set a couple of input parameters in the script. The input parameters set the subjects ID, the test accuracy, and the input binaural files. 3 Implementation details The azimuth detection, GUI for HRTF measurement and the script for the test of VAS described above were implemented in the Matlab environment. During the implementation there were some issues we had to deal with. The first task was to acquire image from the camera to determine the chair azimuth. The most straightforward solution is to use the Matlab Image Acquisition Toolbox, where the necessary functions for image acquisitions are contained. In the case the Image Acquisition Toolbox is not available, the solution depends on used operation system. For example, as we have shown in our article [5], solution like [6] can be used. In the worst case, when none of the before-mentioned solution works (e.g. 64 bit Win7 system), a external program to capture camera image (for example roboteyez [7]) can be used and then the image from the file is loaded and processed. All of the mentioned solutions are tested in our research. The script handling the keyboard input in case of switching the real/virtual source for the VAS testing was in our implementation taken from the Matlab central [8]. The keyboard could be replaced by a joystick or any other small input device for convenience reasons. The reproduction of the test signals requires the use of 3 audio channels (1 for the reference speaker and 2 for the earphones), however, Matlab only works with 2 channel audio by default. Again, more solutions are available, in our case was the handling of more than 2 channels solved by the use of PortAudio [9] which sent the signal into a multichannel external audio interface. 4 Conclusion The Matlab implementation of the tool for measurement of HRTF and testing the algorithms for virtual sound source positioning was presented. This tool increases efficiency of the HRTF measurement and VAS testing. The tool is currently limited only to the horizontal plane (chair azimuth detection), but can be extended to vertical plane. In the paper were also discussed and tested some ways, how to implement such a system in Matlab. Acknowledgement This work was supported by the Grant Agency of the Czech Technical University in Prague, grant No. SGS11/159/OHK3/3T/13. References [1] Štorek D. Suchan, R. Analysis of the Problems in HRTF Measuring, In POSTER 2011 15th International Student Conference on Electrical Engineering. Prague: CTU, Faculty of Electrical Engineering, 2011, p. 1 4. ISBN 978-80-01-04806-1.

[2] Rund, F. - Saturka, F.: Alternatives to HRTF Measurement. In 35th International Conference Telecommunications and Signal Processing. Brno: Vysoké učení technické v Brně, Fakulta elektrotechniky a komunikačních technologií, 2012, p. 648 652. ISBN 978-1-4673-1118-2. [3] Rund F., Saturka F., GUI pro syntézu HRTF a testování výsledků, In 20th Annual Conference Proceeding s Technical Computing Bratislava 2012. Praha: Humusoft, 2012, s. 1-6. ISBN 978-80-970519-4-5. [4] Baráth T., Subjective listening test method for localization testing with a reference : Pre-test, In Poster 2013 17th International Student Conference on Electrical Engineering. Prague: Czech Technical University, 2013, p. 1 5. ISBN 978-80-01-05242-6. [5] Rund, F.: Audio Pointer - Joystick & Camera in Matlab. In Technical Computing Bratislava 2010 [CD-ROM]. Bratislava: RT systems, s.r.o, 2010, p. 1-3. ISBN 978-80-970519-0-7. [6] Kazuyuki Kobayashi. VCAPG2 Matlab Central. Last updated 12 Feb. 2003. <http://www.mathworks.com/matlabcentral/fileexchange/2939> [7] Burke, T. Ultra-simple machine vision in C with RobotEyez, Uploaded 27 Nov. 2011, Last Updated 7 Mar. 2012 http://batchloaf.wordpress.com/2011/11/27/ultra-simple-machine-vision-in-c-with-roboteyes/, [8] Jos, getkey, Matlab Central. Uploaded 18 Apr. 2005, Last Updated 26 Jun. 2012 http://www.mathworks.com/matlabcentral/fileexchange/7465, [9] PortAudio, available at: http://www.portaudio.com/ František Rund Katedra radioelektroniky, FEL ČVUT v Praze, Technická 2, 166 27, Praha 6 tel. 22435 2108, e-mail: xrund@fel.cvut.cz Jaroslav Bouše Katedra radioelektroniky, FEL ČVUT v Praze, Technická 2, 166 27, Praha 6 tel. 22435 2109, e-mail: bousejar@fel.cvut.cz Tomáš Baráth Katedra radioelektroniky, FEL ČVUT v Praze, Technická 2, 166 27, Praha 6