Search This Blog
Popular Posts
-
Let say we have a String something like below. String sample="abc*123"; We want to split this String by '*'. We can...
-
sound -Convert matrix of signal data to sound Syntax sound(y,Fs) sound(y,Fs,bits) Description sound(y,Fs) sends audio signal y to the speak...
-
There are new phones will remove within next few weeks from sony. Sony xperia tipo, sony xperia tipo dual Sony xperia dual has dual sim...
-
When i try to configure mysql with CAS There were lots of problem occurred and i cannot find a good tutorials about this.I followed some tut...
-
PROBLEM 7 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st pr...
-
This delete the file f1 File f1 = new File(file); boolean success = f1.delete(); if (!success){ System.out.println("Deleti...
-
PROBLEM The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. ANSWER 142913828...
-
In this post i will show you how to configure tomcat 7.x for SSL protocol in windows First we want to generate certificate file using jav...
-
samsung smart app challenge 2012 This contest offers $4.08 million in cash prizes and mega marketing support for app promotion to the to...
-
If you did not format your flash drive, then check whether the files are in hidden mode. Then follow these steps: Click on the link below ...
Followers
Tuesday, May 15, 2012
play sound with matlab
sound -Convert matrix of signal data to sound
Syntax
sound(y,Fs)
sound(y,Fs,bits)
Description
sound(y,Fs) sends audio signal y to the speaker at sample rate Fs. If you do not specify a sample rate, sound plays at 8192 Hz. For single-channel (mono) audio, y is an m-by-1 column vector, where m is the number of audio samples. If your system supports stereo playback, y can be an m-by-2 matrix, where the first column corresponds to the left channel, and the second column corresponds to the right channel. The sound function assumes that y contains floating-point numbers between -1 and 1, and clips values outside that range.
sound(y,Fs,bits) specifies the bit depth (that is, the precision) of the sample values. The possible values for bit depth depend on the audio hardware available on your system. Most platforms support depths of 8 bits or 16 bits. If you do not specify bits, the sound function plays at an 8-bit depth.
Tips
The sound function supports sound devices on all Windows and most UNIX platforms.
Most sound cards support sample rates between 5 kHz and 48 kHz. Specifying a sample rate outside this range produces unexpected results.
Examples
Load the demo file gong.mat, which contains sample data y and rate Fs, and listen to the audio:
load gong.mat;
sound(y, Fs);
Play an excerpt from Handel's "Hallelujah Chorus" at twice the recorded sample rate:
load handel.mat;
sound(y, 2*Fs);
Subscribe to:
Post Comments (Atom)
Total Pageviews
Blog Archive
-
▼
2012
(93)
-
▼
May
(28)
- Project.......
- parallel port programming using VB
- bank codes of srilanka
- find pending requests,unfriend in facebook
- pera engineers: play sound with matlab
- play sound with matlab
- pera engineers: interview-joke
- pera engineers: generation of GSM
- generation of GSM
- pera engineers: samsung smart App Challenge
- pera engineers: nokia secret codes
- pera engineers: crack matlab 2009
- pera engineers: samsung smart App Challenge
- pera engineers: problem solve using java
- pera engineers: how to configure dreamweaver cs4 w...
- nokia secret codes
- crack matlab 2009
- windows8 metro app challenge
- samsung smart App Challenge
- how to configure dreamweaver cs4 with google code ...
- Aces coders 2012
- problem solve using java
- configure repository using dreamweaver cs4
- free download twilight movie collection
- ACES get together
- problem solve using java
- problem solve using java
- Problem solve using java
-
▼
May
(28)
0 comments:
Post a Comment