freeswitch/src
rucc bc6842a950 [mod_dptools:playback] fix audio speed change to preserve pitch
When  a  file  is  being played  with  the  playback
application  and  the  speed  is  changed  with  eg.
uuid_fileman  speed:+1  the audio  pitch  increases.
This commit tries to preserve the pitch even when the
speed is changed.

How?
+ Use longer sample chunks (where original freq is preserved)
+ Search for the best cut position using cross-correlation
+ Crossfade adjacent chunks to each other

This updated co-authored commit from the original attempts
to optimize memory usage by allocating memory on the heap
for samples of the previous frame, but using stack memory
for the modified data that is flushed to the buffer.

Co-authored-by: hari <lharangozo@feastfox.com>
Co-authored-by: Joseph Nadiv <ynadiv@corpit.xyz>
2025-01-09 10:44:08 -05:00
..
include [Core] Remove deprecated SWITCH_STACK_NODUP flag. Change switch_event_add_header_string() behavior to always dup. 2022-11-08 01:48:25 +03:00
mod [Core] SWITCH_STACK_NODUP flag is deprecated and will be soon removed. Introduce switch_event_add_header_string_nodup() API. 2022-11-08 01:17:08 +03:00
.gitignore
CMakeLists.txt
Makefile.am
cJSON.c [cJSON] Update to v1.7.12 2020-01-29 00:29:04 +04:00
cJSON_Utils.c [cJSON] Update to v1.7.12 2020-01-29 00:29:04 +04:00
fs_encode.c
fs_tts.c FS-11831 add fs_tts utility 2019-07-17 20:04:59 +04:00
g711.c
inet_pton.c
switch.c [core] use fspr prefixed symbols instead of apr 2022-08-29 20:17:10 +03:00
switch_apr.c [Core] Fix Windows build after apr-util removal 2022-08-29 20:17:12 +03:00
switch_apr_queue.c [Core] Fix Windows build after apr-util removal 2022-08-29 20:17:12 +03:00
switch_buffer.c [Core] Allow switch_buffer_write() to fill in a buffer with zeros. Add switch_buffer_zero_fill() 2022-05-23 21:51:26 +03:00
switch_caller.c [FS-11609] [core] lookup values in caller profile soft variables 2019-02-18 14:03:24 +00:00
switch_channel.c [core][mod_sofia] remove ZRTP (deemed obsolete). 2022-10-28 20:19:42 +03:00
switch_config.c
switch_console.c [Core] Fix possible memory leak in switch_console_complete() 2021-10-19 20:39:37 +03:00
switch_core.c [Core] SWITCH_STACK_NODUP flag is deprecated and will be soon removed. Introduce switch_event_add_header_string_nodup() API. 2022-11-08 01:17:08 +03:00
switch_core_asr.c [core] fix memory leak in switch_core_asr_feed 2022-03-23 17:05:50 +08:00
switch_core_cert.c [core] fix macOS build when missing CRYPTO_mem_ctrl 2021-12-28 08:15:34 +08:00
switch_core_codec.c FS-12008: special case G722 - fix rate passed to switch_core_codec_init() 2019-08-19 18:31:10 +00:00
switch_core_db.c [Core] Avoid using insecure sqlite3_enable_load_extension when SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION is available. 2022-05-18 23:54:01 +03:00
switch_core_directory.c
switch_core_event_hook.c
switch_core_file.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_core_hash.c [Core] Add new switch_core_hash_insert_dup_auto_free() API 2021-10-19 20:39:36 +03:00
switch_core_io.c [Core] Fix use of private headers. 2021-11-10 21:46:29 +03:00
switch_core_media.c [core][mod_sofia] remove ZRTP (deemed obsolete). 2022-10-28 20:19:42 +03:00
switch_core_media_bug.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_core_memory.c [core] use fspr prefixed symbols instead of apr 2022-08-29 20:17:10 +03:00
switch_core_port_allocator.c [Core] switch_core_port_allocator: Replace getaddrinfo() (may get stuck) with switch_sockaddr_new() and fix IPv6. 2020-12-17 21:15:14 +04:00
switch_core_rwlock.c [Core] Fix possible race condition between locking a session and reading it's flags in switch_core_session_read_lock() and switch_core_session_read_lock_hangup(). 2022-07-26 01:49:31 +03:00
switch_core_session.c [core][mod_sofia] remove ZRTP (deemed obsolete). 2022-10-28 20:19:42 +03:00
switch_core_speech.c FS-11601: Fix some core function prototype 2019-01-09 08:44:41 -05:00
switch_core_sqldb.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_core_state_machine.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_core_timer.c
switch_core_video.c [core] fix "--disable-libyuv" 2021-11-01 19:35:53 +03:00
switch_cpp.cpp [Core] Add partial Asr support 2021-10-23 21:59:49 +03:00
switch_curl.c
switch_dso.c [Unit-tests] Add --enable-fake-dlclose configure flag so modules are not unloaded and ASAN could give more info and not just <unknown module>. 2021-10-23 22:00:36 +03:00
switch_estimators.c [core] change estimator CUSUM design params for loss to reduce oscillations. rename var. 2021-10-23 22:00:09 +03:00
switch_event.c [Core] Remove deprecated SWITCH_STACK_NODUP flag. Change switch_event_add_header_string() behavior to always dup. 2022-11-08 01:48:25 +03:00
switch_hashtable.c
switch_ivr.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_ivr_async.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_ivr_bridge.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_ivr_menu.c [core] scan-build: Value stored to 'status' is never read - switch_ivr_menu_execute() 2020-02-12 21:39:57 +00:00
switch_ivr_originate.c [core][mod_sofia] remove ZRTP (deemed obsolete). 2022-10-28 20:19:42 +03:00
switch_ivr_play_say.c [mod_dptools:playback] fix audio speed change to preserve pitch 2025-01-09 10:44:08 -05:00
switch_ivr_say.c
switch_jitterbuffer.c [core] Fix jitter buffer- it is not truncating frames properly. It is also overflowing the node packet body and is copying the packet body twice. Remove magic numbers and replace with constant. 2021-11-16 16:21:11 +02:00
switch_json.c
switch_limit.c FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_limit.c 2019-07-15 23:42:12 +04:00
switch_loadable_module.c [core] use fspr prefixed symbols instead of apr 2022-08-29 20:17:10 +03:00
switch_log.c [core] fix log format string. 2021-10-23 22:01:14 +03:00
switch_mprintf.c
switch_msrp.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_nat.c FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_nat.c 2019-07-15 23:43:48 +04:00
switch_odbc.c [Core] Fix wrong switch_odbc_skip_autocommit_flip function declaration. 2022-08-26 21:47:45 +03:00
switch_packetizer.c [Build-System] Fix switch_packetizer headers and add it to the build. 2021-10-23 22:00:08 +03:00
switch_pcm.c
switch_profile.c FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_profile.c 2019-07-15 23:43:55 +04:00
switch_regex.c FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_regex.c 2019-07-15 23:44:27 +04:00
switch_resample.c [Core, mod_conference] Fixed oscillation in conference AGC processing. Especially during volume reduction processing (#1064) 2021-04-02 22:18:16 +03:00
switch_rtp.c [core][mod_sofia] remove ZRTP (deemed obsolete). 2022-10-28 20:19:42 +03:00
switch_scheduler.c [Core] Scheduler: Fix race between switch_scheduler_add_task() and task_thread_loop(). Add new switch_scheduler_add_task_ex() method. 2021-03-17 01:01:01 +03:00
switch_sdp.c [Build-System] Remove Sofia-Sip library from the FreeSWITCH tree and use packages instead. 2020-08-03 23:46:45 +04:00
switch_spandsp.c [Core] Fix use of private headers. 2021-11-10 21:46:29 +03:00
switch_speex.c
switch_stun.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_swig.c FS-11346: [core] add api to pass pre-parsed values instead of dial strings to switch_ivr_originate 2018-08-22 18:20:13 +00:00
switch_swig.i
switch_time.c [Core] Fix Windows build after apr-util removal 2022-08-29 20:17:12 +03:00
switch_utf8.c
switch_utils.c [Core] Fix dead nested assignments 2022-08-09 23:29:31 +03:00
switch_vad.c [core] Fix switch_vad_process() to properly use result of fvad_process(). Fixes #18 2020-03-05 21:16:33 +04:00
switch_version.c
switch_vpx.c [core] scan-build: Value stored to 'pid' is never read - buffer_vp9_packets() 2020-02-13 12:18:54 +00:00
switch_xml.c [Core] Fix Windows build after apr-util removal 2022-08-29 20:17:12 +03:00
switch_xml_config.c Fix some typos (most found by codespell) 2021-02-24 13:59:11 +01:00
tone2wav.c