jurihock / voicesmith

Android compatible real-time voice changer and Altered Auditory Feedback (DAF + FAF) app
voicesmith.jurihock.de
GNU General Public License v3.0
192 stars 51 forks source link

Sample rate conversion #27

Open jurihock opened 4 months ago

jurihock commented 4 months ago

Check following implementations:

1) https://github.com/google/oboe/tree/main/src/flowgraph/resampler

# https://github.com/google/oboe/tree/main/src/flowgraph/resampler

CPMAddPackage(
  NAME resampler
  VERSION 1.8.1
  GIT_TAG 1.8.1
  GITHUB_REPOSITORY google/oboe
  DOWNLOAD_ONLY YES)

if(resampler_ADDED)

  add_library(resampler)

  file(GLOB HDR "${resampler_SOURCE_DIR}/src/flowgraph/resampler/*.h")
  file(GLOB SRC "${resampler_SOURCE_DIR}/src/flowgraph/resampler/*.cpp")

  target_sources(resampler
    PUBLIC "${HDR}" "${SRC}")

  target_include_directories(resampler
    PUBLIC "${resampler_SOURCE_DIR}/src/flowgraph")

  target_compile_definitions(resampler
    PUBLIC -DRESAMPLER_OUTER_NAMESPACE=resampler)

endif()

2) https://webrtc.googlesource.com/src/+/refs/heads/main/common_audio/resampler