Article View: comp.os.msdos.programmer
Article #3763Re: SPEECH OUTPUT via PC speaker. HELP!
From: Jerzy Tarasiuk
Date: Tue, 13 Oct 1992 17:39
Date: Tue, 13 Oct 1992 17:39
15 lines
1392 bytes
1392 bytes
>>>>> On 13 Oct 92 13:38:15 +1300, singlis@waikato.ac.nz said: singlis> I have some sampled speech data (8Khz), mu-law as well as linear singlis> (-8k to +8k). singlis> How can I play this music back through the standard PC speaker... A way to play music through PC speaker: program 8253 channel 2 for mode 0, least significant byte, binary (out 43h,90h) and write data to port 42h. Note data must have proper range, e.g. if written at 19kHz, must not exceed 64. I don't know: you sampled 8000 times per second or 16000 ? In first case, can output data at 24kHz, in second at 32, making proper interpolation/rounding. Note to get good quality need output data in timer interrupts which must be set for proper frequency and must adjust memory refresh frequency (it must be interrupt frequency or its multiply). I have an assembly program for it, callable from Turbo Pascal.
Technical Details
Message-ID:
<JT.92Oct13183919@fizyk1.fuw.edu.pl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jtReferences:
<1992Oct13.133815.11389@waikato.ac.nz>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt From: jt@fuw.edu.pl (Jerzy Tarasiuk) Subject: Re: SPEECH OUTPUT via PC speaker. HELP! In-Reply-To: singlis@waikato.ac.nz's message of 13 Oct 92 13:38:15 +1300 Message-ID: <JT.92Oct13183919@fizyk1.fuw.edu.pl> Sender: news@fuw.edu.pl Nntp-Posting-Host: fizyk1 Organization: Warsaw University Physics Dept. References: <1992Oct13.133815.11389@waikato.ac.nz> Date: Tue, 13 Oct 1992 17:39:19 GMT Lines: 15