audioresample

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Video/Audio/PDF
Introduced first in SolidGeometry 4.9, Creation date: 2020-03-28, Last change: 2025-09-14

resamples the audiosignal with a different sample rate

Description

For writing audiofiles, typically 44100 Hz are used. For voice recording, and processing 16000 is sufficient.
The resample process does not use any windowing.

See Also: , audiotrim

Example Illustration

 missing image of audioresample(OSig,FSo,FSn)

Syntax

[NSig,FSn]=audioresample(OSig,[FSo,FSn])

Input Parameter

OSig: Original Signal
FSo: Original Sample rate; default is 44100
FSn: NEw Sample ratel default is 16000

Output Parameter

NSig: New Signal
FSn: New Sample rate

Examples


load handel.mat; filename = desktopdir('handel.wav'); audiowrite(filename,y,Fs); clear y Fs
[y,FS]=audioreadTL;
audioresample(y,FS,16000);




Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21