├── dummy
├── portaudio
├── bin-stamp
├── lib-stamp
├── bindings
│ ├── cpp
│ │ ├── NEWS
│ │ ├── AUTHORS
│ │ ├── README
│ │ ├── build
│ │ │ ├── gnu
│ │ │ │ ├── OUT_OF_DATE
│ │ │ │ └── aclocal.m4
│ │ │ ├── vc7
│ │ │ │ └── OUT_OF_DATE
│ │ │ ├── vc6
│ │ │ │ ├── static_library.dsw
│ │ │ │ ├── devs_example.dsw
│ │ │ │ └── sine_example.dsw
│ │ │ └── vc7_1
│ │ │ │ ├── static_library.sln
│ │ │ │ ├── devs_example.sln
│ │ │ │ └── sine_example.sln
│ │ ├── source
│ │ │ └── portaudiocpp
│ │ │ │ ├── MemFunCallbackStream.cxx
│ │ │ │ ├── CallbackStream.cxx
│ │ │ │ ├── CallbackInterface.cxx
│ │ │ │ ├── CFunCallbackStream.cxx
│ │ │ │ ├── InterfaceCallbackStream.cxx
│ │ │ │ ├── SystemDeviceIterator.cxx
│ │ │ │ ├── SystemHostApiIterator.cxx
│ │ │ │ ├── AsioDeviceAdapter.cxx
│ │ │ │ ├── BlockingStream.cxx
│ │ │ │ └── CppFunCallbackStream.cxx
│ │ ├── doc
│ │ │ ├── Makefile.am
│ │ │ └── README
│ │ ├── Makefile.am
│ │ ├── bin
│ │ │ └── Makefile.am
│ │ ├── portaudiocpp.pc.in
│ │ ├── include
│ │ │ ├── Makefile.am
│ │ │ └── portaudiocpp
│ │ │ │ ├── SampleDataFormat.hxx
│ │ │ │ ├── AsioDeviceAdapter.hxx
│ │ │ │ ├── CallbackStream.hxx
│ │ │ │ ├── BlockingStream.hxx
│ │ │ │ ├── InterfaceCallbackStream.hxx
│ │ │ │ ├── CallbackInterface.hxx
│ │ │ │ ├── CFunCallbackStream.hxx
│ │ │ │ ├── SystemHostApiIterator.hxx
│ │ │ │ ├── AutoSystem.hxx
│ │ │ │ ├── SystemDeviceIterator.hxx
│ │ │ │ ├── HostApi.hxx
│ │ │ │ ├── Stream.hxx
│ │ │ │ ├── DirectionSpecificStreamParameters.hxx
│ │ │ │ └── StreamParameters.hxx
│ │ ├── lib
│ │ │ └── Makefile.am
│ │ ├── configure.ac
│ │ ├── COPYING
│ │ └── SConscript
│ └── java
│ │ ├── scripts
│ │ └── make_header.bat
│ │ ├── jportaudio
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── src
│ │ │ └── com
│ │ │ │ └── portaudio
│ │ │ │ ├── StreamInfo.java
│ │ │ │ ├── StreamParameters.java
│ │ │ │ ├── HostApiInfo.java
│ │ │ │ └── DeviceInfo.java
│ │ └── jtests
│ │ │ └── com
│ │ │ └── portaudio
│ │ │ └── PlaySine.java
│ │ ├── c
│ │ └── build
│ │ │ └── vs2010
│ │ │ └── PortAudioJNI
│ │ │ └── PortAudioJNI.sln
│ │ └── jportaudio.dox
├── bin
│ └── .libs
│ │ ├── pa_devs
│ │ ├── pa_fuzz
│ │ ├── paex_saw
│ │ ├── patest1
│ │ ├── pa_minlat
│ │ ├── paex_pink
│ │ ├── paex_record
│ │ ├── paex_sine
│ │ ├── paqa_devs
│ │ ├── paqa_errs
│ │ ├── patest_clip
│ │ ├── patest_hang
│ │ ├── patest_many
│ │ ├── patest_mono
│ │ ├── patest_stop
│ │ ├── patest_wire
│ │ ├── paqa_latency
│ │ ├── patest_buffer
│ │ ├── patest_dither
│ │ ├── patest_prime
│ │ ├── patest_sine8
│ │ ├── paex_write_sine
│ │ ├── patest_latency
│ │ ├── patest_leftright
│ │ ├── patest_longsine
│ │ ├── patest_maxsines
│ │ ├── patest_ringmix
│ │ ├── patest_sine_time
│ │ ├── patest_two_rates
│ │ ├── patest_underflow
│ │ ├── patest_in_overflow
│ │ ├── patest_multi_sine
│ │ ├── patest_sine_srate
│ │ ├── patest_start_stop
│ │ ├── paex_read_write_wire
│ │ ├── patest_callbackstop
│ │ ├── patest_out_underflow
│ │ ├── patest_sine_formats
│ │ ├── patest_stop_playout
│ │ ├── patest_toomanysines
│ │ ├── paex_record_noPlayBack
│ │ ├── paex_write_sine_nonint
│ │ └── patest_sine_channelmaps
├── src
│ ├── common
│ │ ├── pa_front.o
│ │ ├── pa_trace.o
│ │ ├── pa_cpuload.o
│ │ ├── pa_dither.o
│ │ ├── pa_process.o
│ │ ├── pa_stream.o
│ │ ├── pa_allocation.o
│ │ ├── pa_converters.o
│ │ ├── pa_debugprint.c
│ │ ├── pa_debugprint.o
│ │ ├── pa_ringbuffer.o
│ │ ├── .libs
│ │ │ ├── pa_dither.o
│ │ │ ├── pa_front.o
│ │ │ ├── pa_stream.o
│ │ │ ├── pa_trace.o
│ │ │ ├── pa_cpuload.o
│ │ │ ├── pa_process.o
│ │ │ ├── pa_allocation.o
│ │ │ ├── pa_converters.o
│ │ │ ├── pa_debugprint.o
│ │ │ └── pa_ringbuffer.o
│ │ ├── pa_front.lo
│ │ ├── pa_trace.lo
│ │ ├── pa_dither.lo
│ │ ├── pa_stream.lo
│ │ ├── pa_cpuload.lo
│ │ ├── pa_process.lo
│ │ ├── pa_allocation.lo
│ │ ├── pa_converters.lo
│ │ ├── pa_debugprint.lo
│ │ └── pa_ringbuffer.lo
│ ├── os
│ │ ├── unix
│ │ │ ├── pa_unix_util.o
│ │ │ ├── pa_unix_hostapis.o
│ │ │ ├── .libs
│ │ │ │ ├── pa_unix_util.o
│ │ │ │ └── pa_unix_hostapis.o
│ │ │ ├── pa_unix_util.lo
│ │ │ └── pa_unix_hostapis.lo
│ │ └── win
│ │ │ ├── pa_x86_plain_converters.h
│ │ │ └── pa_win_wdmks_utils.h
│ └── hostapi
│ │ ├── asio
│ │ ├── Pa_ASIO.pdf
│ │ └── Callback_adaptation_.pdf
│ │ ├── coreaudio
│ │ ├── pa_mac_core.o
│ │ ├── .libs
│ │ │ ├── pa_mac_core.o
│ │ │ ├── pa_mac_core_blocking.o
│ │ │ └── pa_mac_core_utilities.o
│ │ ├── pa_mac_core_blocking.o
│ │ ├── pa_mac_core_utilities.o
│ │ ├── pa_mac_core.lo
│ │ ├── pa_mac_core_blocking.lo
│ │ └── pa_mac_core_utilities.lo
│ │ ├── oss
│ │ ├── low_latency_tip.txt
│ │ └── recplay.c
│ │ ├── skeleton
│ │ ├── pa_hostapi_skeleton.o
│ │ ├── .libs
│ │ │ └── pa_hostapi_skeleton.o
│ │ ├── README.txt
│ │ └── pa_hostapi_skeleton.lo
│ │ └── wasapi
│ │ ├── mingw-include
│ │ ├── ksguid.h
│ │ └── propkeydef.h
│ │ └── readme.txt
├── lib
│ ├── .libs
│ │ ├── libportaudio.a
│ │ ├── libportaudio.dylib
│ │ ├── libportaudio.2.dylib
│ │ ├── libportaudio.exp
│ │ ├── libportaudio-symbols.expsym
│ │ ├── libportaudio.la
│ │ └── libportaudio.lai
│ └── libportaudio.la
├── doc
│ ├── src
│ │ ├── images
│ │ │ └── portaudio-external-architecture-diagram.png
│ │ ├── tutorial
│ │ │ ├── terminating_portaudio.dox
│ │ │ ├── exploring.dox
│ │ │ ├── initializing_portaudio.dox
│ │ │ ├── compile_windows_mingw.dox
│ │ │ ├── compile_cmake.dox
│ │ │ ├── start_stop_abort.dox
│ │ │ └── utility_functions.dox
│ │ ├── srcguide.dox
│ │ └── license.dox
│ └── utils
│ │ └── checkfiledocs.py
├── fixfile.bat
├── test
│ ├── CMakeLists.txt
│ └── README.txt
├── portaudio-2.0.pc.in
├── portaudio-2.0.pc
├── fixdir.bat
├── testcvs
│ └── changeme.txt
├── README.configure.txt
├── build
│ ├── msvc
│ │ ├── portaudio.dsw
│ │ ├── portaudio.sln
│ │ └── portaudio.def
│ └── scons
│ │ └── SConscript_common
├── examples
│ └── CMakeLists.txt
├── qa
│ └── loopback
│ │ └── src
│ │ ├── biquad_filter.h
│ │ ├── test_audio_analyzer.h
│ │ └── paqa_tools.h
├── cmake_support
│ ├── options_cmake.h.in
│ ├── FindASIOSDK.cmake
│ ├── FindDXSDK.cmake
│ └── template_portaudio.def
└── pablio
│ ├── pablio.def
│ └── README.txt
├── EN_p2fa_16000
├── list
├── networkTMP~
├── networkTMP
├── config
├── config~
├── config_padding
├── config_padding~
├── macros
├── monophones
├── network~
├── network
├── dictionary~
├── dictionary
└── networkTMP.htk
├── project_manager_LC.txt
├── mkphones0.led
├── myGOP
├── utt.xml
├── README.md
├── EN_voxforge
├── Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1
│ ├── TestResults
│ ├── sample.term
│ ├── config
│ ├── LICENSE
│ ├── sample.dict
│ ├── sample.dfa
│ ├── audio_files_used
│ ├── sample.voca
│ └── sample.grammar
├── list
├── macros
├── dictionary~
└── dictionary
├── EN2
├── hmmdefs
├── macros
├── list_wo_sp_sil
├── list
├── foo1
├── foo2
├── network
├── network~
├── dictionary
├── macros-ascii
└── stats_hmm9
├── alex_1.aiff
├── alex_1.wav
├── GOP_notes.pdf
├── recorded.raw
├── gop
├── cerevoz.pyc
├── utt.xml
├── .project
├── .pydevproject
├── cerevoz.py
└── gopThresholds.py
├── F01FR1phrase01_britain.txt
├── cerevoice.xml
├── F01FR1phrase01_britain.wav
├── project_manager_emer.wav
├── project_manager_odei.wav
├── project_manager_sree.wav
├── project_manager_thomas.raw
├── project_manager_thomas.wav
├── spanish_thresholds.txt
├── htk.voxforge.conf
├── milla2.txt
├── htk.lb2.conf
├── gop.txt
├── milla2_align.phon
├── milla2_align_wrongProns.phon
└── milla2.phon
/dummy:
--------------------------------------------------------------------------------
1 | Cat
2 |
--------------------------------------------------------------------------------
/portaudio/bin-stamp:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/portaudio/lib-stamp:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/list:
--------------------------------------------------------------------------------
1 | monophones
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/NEWS:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/AUTHORS:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/README:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/project_manager_LC.txt:
--------------------------------------------------------------------------------
1 | project manager
2 |
--------------------------------------------------------------------------------
/mkphones0.led:
--------------------------------------------------------------------------------
1 | EX
2 | IS sil sil
3 | DE sp
4 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/gnu/OUT_OF_DATE:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc7/OUT_OF_DATE:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/myGOP:
--------------------------------------------------------------------------------
1 | ./gop_EN_voxforge_audioport.sh ./project_manager_LC.txt
2 |
--------------------------------------------------------------------------------
/utt.xml:
--------------------------------------------------------------------------------
1 |
2 | Perfect! Let's try another sentence
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Goodness Of Pronunciation algorithm for English with HTK
2 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/TestResults:
--------------------------------------------------------------------------------
1 | not completed
--------------------------------------------------------------------------------
/EN2/hmmdefs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/EN2/hmmdefs
--------------------------------------------------------------------------------
/EN2/macros:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/EN2/macros
--------------------------------------------------------------------------------
/alex_1.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/alex_1.aiff
--------------------------------------------------------------------------------
/alex_1.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/alex_1.wav
--------------------------------------------------------------------------------
/GOP_notes.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/GOP_notes.pdf
--------------------------------------------------------------------------------
/recorded.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/recorded.raw
--------------------------------------------------------------------------------
/gop/cerevoz.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/gop/cerevoz.pyc
--------------------------------------------------------------------------------
/gop/utt.xml:
--------------------------------------------------------------------------------
1 | I need toilet paper
--------------------------------------------------------------------------------
/F01FR1phrase01_britain.txt:
--------------------------------------------------------------------------------
1 | i've always found it difficult to sleep on long train journeys in britain
2 |
--------------------------------------------------------------------------------
/cerevoice.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hit a key to go to the next exercise!
4 |
5 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/networkTMP~:
--------------------------------------------------------------------------------
1 | (SENT-START <
2 | sil
3 | | K AE1 T
4 | | F AE1 T
5 | | sil
6 | sil
7 | > SENT-END )
8 |
--------------------------------------------------------------------------------
/F01FR1phrase01_britain.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/F01FR1phrase01_britain.wav
--------------------------------------------------------------------------------
/project_manager_emer.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/project_manager_emer.wav
--------------------------------------------------------------------------------
/project_manager_odei.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/project_manager_odei.wav
--------------------------------------------------------------------------------
/project_manager_sree.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/project_manager_sree.wav
--------------------------------------------------------------------------------
/project_manager_thomas.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/project_manager_thomas.raw
--------------------------------------------------------------------------------
/project_manager_thomas.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/project_manager_thomas.wav
--------------------------------------------------------------------------------
/portaudio/bin/.libs/pa_devs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/pa_devs
--------------------------------------------------------------------------------
/portaudio/bin/.libs/pa_fuzz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/pa_fuzz
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_saw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_saw
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest1
--------------------------------------------------------------------------------
/portaudio/bin/.libs/pa_minlat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/pa_minlat
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_pink:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_pink
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_record:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_record
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_sine:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_sine
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paqa_devs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paqa_devs
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paqa_errs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paqa_errs
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_clip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_clip
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_hang:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_hang
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_many:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_many
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_mono:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_mono
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_stop:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_stop
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_wire:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_wire
--------------------------------------------------------------------------------
/portaudio/src/common/pa_front.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_front.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_trace.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_trace.o
--------------------------------------------------------------------------------
/EN_p2fa_16000/networkTMP:
--------------------------------------------------------------------------------
1 | (SENT-START <
2 | sil
3 | HH ER0 sp AY1 sp AA1 R sp AY1 sp B L UW1 sp
4 | sil
5 | > SENT-END )
6 |
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paqa_latency:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paqa_latency
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_buffer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_buffer
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_dither:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_dither
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_prime:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_prime
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_sine8:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_sine8
--------------------------------------------------------------------------------
/portaudio/src/common/pa_cpuload.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_cpuload.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_dither.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_dither.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_process.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_process.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_stream.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_stream.o
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_write_sine:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_write_sine
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_latency:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_latency
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_leftright:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_leftright
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_longsine:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_longsine
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_maxsines:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_maxsines
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_ringmix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_ringmix
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_sine_time:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_sine_time
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_two_rates:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_two_rates
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_underflow:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_underflow
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/lib/.libs/libportaudio.a
--------------------------------------------------------------------------------
/portaudio/src/common/pa_allocation.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_allocation.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_converters.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_converters.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_debugprint.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_debugprint.c
--------------------------------------------------------------------------------
/portaudio/src/common/pa_debugprint.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_debugprint.o
--------------------------------------------------------------------------------
/portaudio/src/common/pa_ringbuffer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/pa_ringbuffer.o
--------------------------------------------------------------------------------
/portaudio/src/os/unix/pa_unix_util.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/os/unix/pa_unix_util.o
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_in_overflow:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_in_overflow
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_multi_sine:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_multi_sine
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_sine_srate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_sine_srate
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_start_stop:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_start_stop
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/lib/.libs/libportaudio.dylib
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_dither.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_dither.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_front.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_front.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_stream.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_stream.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_trace.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_trace.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/asio/Pa_ASIO.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/asio/Pa_ASIO.pdf
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_read_write_wire:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_read_write_wire
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_callbackstop:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_callbackstop
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_out_underflow:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_out_underflow
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_sine_formats:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_sine_formats
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_stop_playout:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_stop_playout
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_toomanysines:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_toomanysines
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio.2.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/lib/.libs/libportaudio.2.dylib
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_cpuload.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_cpuload.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_process.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_process.o
--------------------------------------------------------------------------------
/portaudio/src/os/unix/pa_unix_hostapis.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/os/unix/pa_unix_hostapis.o
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_record_noPlayBack:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_record_noPlayBack
--------------------------------------------------------------------------------
/portaudio/bin/.libs/paex_write_sine_nonint:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/paex_write_sine_nonint
--------------------------------------------------------------------------------
/portaudio/bin/.libs/patest_sine_channelmaps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/bin/.libs/patest_sine_channelmaps
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_allocation.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_allocation.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_converters.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_converters.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_debugprint.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_debugprint.o
--------------------------------------------------------------------------------
/portaudio/src/common/.libs/pa_ringbuffer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/common/.libs/pa_ringbuffer.o
--------------------------------------------------------------------------------
/portaudio/src/os/unix/.libs/pa_unix_util.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/os/unix/.libs/pa_unix_util.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/pa_mac_core.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/coreaudio/pa_mac_core.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/oss/low_latency_tip.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/oss/low_latency_tip.txt
--------------------------------------------------------------------------------
/portaudio/src/os/unix/.libs/pa_unix_hostapis.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/os/unix/.libs/pa_unix_hostapis.o
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/MemFunCallbackStream.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/MemFunCallbackStream.hxx"
2 |
3 | // (... template class ...)
4 |
5 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/asio/Callback_adaptation_.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/asio/Callback_adaptation_.pdf
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/.libs/pa_mac_core.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/coreaudio/.libs/pa_mac_core.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/skeleton/pa_hostapi_skeleton.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/skeleton/pa_hostapi_skeleton.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.o
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/doc/Makefile.am:
--------------------------------------------------------------------------------
1 | PACPP_ROOT = .
2 | #INCLUDES = -I$(srcdir)/$(PACPP_ROOT)/include -I$(top_srcdir)/include
3 |
4 | docs:
5 | doxygen $(srcdir)/config.doxy.linux
6 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/skeleton/.libs/pa_hostapi_skeleton.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/skeleton/.libs/pa_hostapi_skeleton.o
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = lib include bin
2 | #doc
3 |
4 | EXTRA_DIST = portaudiocpp.pc
5 |
6 | pkgconfigdir = $(libdir)/pkgconfig
7 | pkgconfig_DATA = portaudiocpp.pc
8 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/.libs/pa_mac_core_blocking.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/coreaudio/.libs/pa_mac_core_blocking.o
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/.libs/pa_mac_core_utilities.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/src/hostapi/coreaudio/.libs/pa_mac_core_utilities.o
--------------------------------------------------------------------------------
/portaudio/doc/src/images/portaudio-external-architecture-diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topel/goodness-of-pronunciation-HTK/HEAD/portaudio/doc/src/images/portaudio-external-architecture-diagram.png
--------------------------------------------------------------------------------
/spanish_thresholds.txt:
--------------------------------------------------------------------------------
1 | IY1 0.5
2 | IH1 5.0
3 | AE1 2.0
4 | UH1 0.0
5 | AA1 10.0
6 | UW1 10.0
7 | UH1 7.0
8 | AO1 1.0
9 | OW1 2.0
10 | ER0 3.0
11 | ER1 5.0
12 | B 3.0
13 | V 2.0
14 | G 9.0
15 | Z 6.0
16 |
17 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/skeleton/README.txt:
--------------------------------------------------------------------------------
1 | pa_hostapi_skeleton.c provides a starting point for implementing support for a new host API with PortAudio. The idea is that you copy it to a new directory inside /hostapi and start editing.
--------------------------------------------------------------------------------
/portaudio/bindings/java/scripts/make_header.bat:
--------------------------------------------------------------------------------
1 | REM Generate the JNI header file from the Java code for JPortAudio
2 | REM by Phil Burk
3 |
4 | javah -classpath ../jportaudio/bin -d ../c/src com.portaudio.PortAudio com.portaudio.BlockingStream
5 |
--------------------------------------------------------------------------------
/portaudio/fixfile.bat:
--------------------------------------------------------------------------------
1 | rem Use Astyle to fix style in a file
2 | fixlines -p %1%
3 | astyle --style=ansi -c -o --convert-tabs --indent-preprocessor %1%
4 | del %1%.orig
5 | @rem convert line terminators to Unix style LFs
6 | fixlines -u %1%
7 | del %1%.bak
8 |
--------------------------------------------------------------------------------
/htk.voxforge.conf:
--------------------------------------------------------------------------------
1 | SOURCEFORMAT = WAV
2 | TARGETKIND = MFCC_0_D_N_Z
3 | TARGETRATE = 100000.0
4 | SAVECOMPRESSED = T
5 | SAVEWITHCRC = T
6 | WINDOWSIZE = 250000.0
7 | USEHAMMING = T
8 | PREEMCOEF = 0.97
9 | NUMCHANS = 26
10 | CEPLIFTER = 22
11 | NUMCEPS = 12
12 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/sample.term:
--------------------------------------------------------------------------------
1 | 0 NS_B
2 | 1 NS_E
3 | 2 CALL_V
4 | 3 PRONOUN
5 | 4 DIAL_V
6 | 5 F_NAME_KENNETH
7 | 6 L_NAME_KENNETH_MACDOUGALL
8 | 7 L_NAME_KENNETH_MACLEAN
9 | 8 F_NAME_STEVE_YOUNG
10 | 9 L_NAME_STEVE_YOUNG
11 | 10 DIGIT
12 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/config:
--------------------------------------------------------------------------------
1 | TARGETKIND = MFCC_0_D_N_Z
2 | TARGETRATE = 100000.0
3 | SAVECOMPRESSED = T
4 | SAVEWITHCRC = T
5 | WINDOWSIZE = 250000.0
6 | USEHAMMING = T
7 | PREEMCOEF = 0.97
8 | NUMCHANS = 26
9 | CEPLIFTER = 22
10 | NUMCEPS = 12
11 |
--------------------------------------------------------------------------------
/portaudio/test/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Test projects
2 | # Use the macro to add test projects
3 |
4 | MACRO(ADD_TEST appl_name)
5 | ADD_EXECUTABLE(${appl_name} "${appl_name}.c")
6 | TARGET_LINK_LIBRARIES(${appl_name} portaudio_static)
7 | ENDMACRO(ADD_TEST)
8 |
9 | ADD_TEST(patest_longsine)
10 |
--------------------------------------------------------------------------------
/EN2/list_wo_sp_sil:
--------------------------------------------------------------------------------
1 | b
2 | d
3 | f
4 | g
5 | k
6 | l
7 | m
8 | n
9 | p
10 | r
11 | s
12 | t
13 | v
14 | w
15 | y
16 | z
17 | aa
18 | ae
19 | ah
20 | ao
21 | aw
22 | ay
23 | ch
24 | dh
25 | eh
26 | er
27 | ey
28 | hh
29 | ih
30 | iy
31 | jh
32 | ng
33 | ow
34 | oy
35 | sh
36 | th
37 | uh
38 | uw
39 | zh
40 |
--------------------------------------------------------------------------------
/EN2/list:
--------------------------------------------------------------------------------
1 | b
2 | d
3 | f
4 | g
5 | k
6 | l
7 | m
8 | n
9 | p
10 | r
11 | s
12 | t
13 | v
14 | w
15 | y
16 | z
17 | aa
18 | ae
19 | ah
20 | ao
21 | aw
22 | ay
23 | ch
24 | dh
25 | eh
26 | er
27 | ey
28 | hh
29 | ih
30 | iy
31 | jh
32 | ng
33 | ow
34 | oy
35 | sh
36 | sp
37 | th
38 | uh
39 | uw
40 | zh
41 | sil
42 |
--------------------------------------------------------------------------------
/portaudio/portaudio-2.0.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: PortAudio
7 | Description: Portable audio I/O
8 | Requires:
9 | Version: 19
10 |
11 | Libs: -L${libdir} -lportaudio @LIBS@
12 | Cflags: -I${includedir} @THREAD_CFLAGS@
13 |
--------------------------------------------------------------------------------
/EN2/foo1:
--------------------------------------------------------------------------------
1 | aa
2 | ae
3 | ah
4 | ao
5 | aw
6 | ay
7 | b
8 | ch
9 | d
10 | dh
11 | eh
12 | er
13 | ey
14 | f
15 | g
16 | hh
17 | ih
18 | iy
19 | jh
20 | k
21 | l
22 | m
23 | n
24 | ng
25 | !NULL
26 | ow
27 | oy
28 | p
29 | r
30 | s
31 | sh
32 | sil
33 | t
34 | th
35 | uh
36 | uw
37 | v
38 | w
39 | y
40 | z
41 | zh
42 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/bin/Makefile.am:
--------------------------------------------------------------------------------
1 | BINDIR = $(top_srcdir)/example
2 | LIBDIR = $(top_builddir)/lib
3 |
4 | noinst_PROGRAMS = devs sine
5 |
6 | LDADD = $(LIBDIR)/libportaudiocpp.la $(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
7 |
8 | devs_SOURCES = $(BINDIR)/devs.cxx
9 | sine_SOURCES = $(BINDIR)/sine.cxx
10 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/portaudiocpp.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: PortAudioCpp
7 | Description: Portable audio I/O C++ bindings
8 | Version: 12
9 | Requires: portaudio-2.0
10 |
11 | Libs: -L${libdir} -lportaudiocpp
12 | Cflags: -I${includedir}
13 |
--------------------------------------------------------------------------------
/EN_voxforge/list:
--------------------------------------------------------------------------------
1 | aa
2 | ae
3 | ah
4 | ao
5 | aw
6 | ax
7 | ay
8 | b
9 | ch
10 | d
11 | dh
12 | dx
13 | eh
14 | er
15 | ey
16 | f
17 | g
18 | hh
19 | ih
20 | ix
21 | iy
22 | jh
23 | k
24 | l
25 | m
26 | n
27 | ng
28 | ow
29 | oy
30 | p
31 | r
32 | s
33 | sh
34 | sil
35 | sp
36 | t
37 | th
38 | uh
39 | uw
40 | v
41 | w
42 | y
43 | z
44 | zh
45 |
--------------------------------------------------------------------------------
/EN2/foo2:
--------------------------------------------------------------------------------
1 | aa
2 | ae
3 | ah
4 | ao
5 | aw
6 | ay
7 | b
8 | ch
9 | d
10 | dh
11 | eh
12 | er
13 | ey
14 | f
15 | g
16 | hh
17 | ih
18 | iy
19 | jh
20 | k
21 | l
22 | m
23 | n
24 | ng
25 | !NULL
26 | ow
27 | oy
28 | p
29 | r
30 | s
31 | SENT-END
32 | SENT-START
33 | sh
34 | sil
35 | sp
36 | t
37 | th
38 | uh
39 | uw
40 | v
41 | w
42 | y
43 | z
44 | zh
45 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/config:
--------------------------------------------------------------------------------
1 | # Coding parameters
2 | SOURCEKIND = WAVEFORM
3 | SOURCEFORMAT = WAVE
4 | SOURCERATE = 625.0
5 | TARGETKIND = PLP_0_D_A_Z
6 | TARGETRATE = 100000.0
7 | SAVECOMPRESSED = T
8 | SAVEWITHCRC = T
9 | WINDOWSIZE = 250000.0
10 | ZMEANSOURCE = T
11 | USEHAMMING = T
12 | PREEMCOEF = 0.97
13 | NUMCHANS = 20
14 | LPCORDER = 12
15 | USEPOWER = T
16 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/config~:
--------------------------------------------------------------------------------
1 | # Coding parameters
2 | SOURCEKIND = WAVEFORM
3 | SOURCEFORMAT = WAVE
4 | SOURCERATE = 625.0
5 | TARGETKIND = PLP_0_D_A_Z
6 | TARGETRATE = 100000.0
7 | SAVECOMPRESSED = T
8 | SAVEWITHCRC = T
9 | WINDOWSIZE = 250000.0
10 | ZMEANSOURCE = T
11 | USEHAMMING = T
12 | PREEMCOEF = 0.97
13 | NUMCHANS = 20
14 | LPCORDER = 12
15 | USEPOWER = F
16 |
--------------------------------------------------------------------------------
/portaudio/portaudio-2.0.pc:
--------------------------------------------------------------------------------
1 | prefix=/usr/local
2 | exec_prefix=${prefix}
3 | libdir=${exec_prefix}/lib
4 | includedir=${prefix}/include
5 |
6 | Name: PortAudio
7 | Description: Portable audio I/O
8 | Requires:
9 | Version: 19
10 |
11 | Libs: -L${libdir} -lportaudio -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
12 | Cflags: -I${includedir}
13 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/config_padding:
--------------------------------------------------------------------------------
1 | # Coding parameters
2 | SOURCEKIND = WAVEFORM
3 | SOURCEFORMAT = WAVE
4 | SOURCERATE = 625.0
5 | TARGETKIND = PLP_0_D_A_Z
6 | TARGETRATE = 100000.0
7 | SAVECOMPRESSED = T
8 | SAVEWITHCRC = T
9 | WINDOWSIZE = 250000.0
10 | ZMEANSOURCE = T
11 | USEHAMMING = T
12 | PREEMCOEF = 0.97
13 | NUMCHANS = 20
14 | LPCORDER = 12
15 | USEPOWER = F
16 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/config_padding~:
--------------------------------------------------------------------------------
1 | # Coding parameters
2 | SOURCEKIND = WAVEFORM
3 | SOURCEFORMAT = WAVE
4 | SOURCERATE = 625.0
5 | TARGETKIND = PLP_0_D_A_Z
6 | TARGETRATE = 100000.0
7 | SAVECOMPRESSED = T
8 | SAVEWITHCRC = T
9 | WINDOWSIZE = 250000.0
10 | ZMEANSOURCE = T
11 | USEHAMMING = T
12 | PREEMCOEF = 0.97
13 | NUMCHANS = 20
14 | LPCORDER = 12
15 | USEPOWER = T
16 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_front.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_front.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_front.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_front.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_trace.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_trace.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_trace.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_trace.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_dither.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_dither.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_dither.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_dither.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_stream.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_stream.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_stream.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_stream.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_cpuload.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_cpuload.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_cpuload.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_cpuload.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_process.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_process.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_process.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_process.o'
12 |
13 |
--------------------------------------------------------------------------------
/milla2.txt:
--------------------------------------------------------------------------------
1 | These shoes fit my feet
2 | Pat put the pot
3 | The fool is full of food
4 | He bought a boat
5 | Her bird knows words
6 | Cod can't code
7 | Boys buy beer
8 | Very violent vampires
9 | the girls have curls
10 | Wait Kate
11 | Her eyes are ice blue
12 | Sherry is like cherries
13 | My comb is in my home
14 | I think it's a good thing
15 | The jet is not here yet
16 | Jerry loves sherry
17 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_allocation.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_allocation.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_allocation.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_allocation.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_converters.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_converters.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_converters.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_converters.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_debugprint.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_debugprint.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_debugprint.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_debugprint.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/common/pa_ringbuffer.lo:
--------------------------------------------------------------------------------
1 | # src/common/pa_ringbuffer.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_ringbuffer.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_ringbuffer.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/os/unix/pa_unix_util.lo:
--------------------------------------------------------------------------------
1 | # src/os/unix/pa_unix_util.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_unix_util.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_unix_util.o'
12 |
13 |
--------------------------------------------------------------------------------
/htk.lb2.conf:
--------------------------------------------------------------------------------
1 | SOURCEFORMAT = WAVE # signaux au format .wav
2 | TARGETKIND = MFCC_0_D_A_Z
3 | TARGETRATE = 100000.0 # 1 frame toutes les 10ms
4 | SAVECOMPRESSED = T
5 | SAVEWITHCRC = T
6 | WINDOWSIZE = 200000.0
7 | USEHAMMING = T
8 | PREEMCOEF = 0.97
9 | NUMCHANS = 26
10 | CEPLIFTER = 22
11 | NUMCEPS = 12
12 | ENORMALISE = T
13 | ZMEANSOURCE = T
14 | USEPOWER = T
15 | #BYTEORDER = VAX
16 |
17 |
--------------------------------------------------------------------------------
/EN2/network:
--------------------------------------------------------------------------------
1 | (SENT-START <
2 | sil
3 | | b
4 | | d
5 | | f
6 | | g
7 | | k
8 | | l
9 | | m
10 | | n
11 | | p
12 | | r
13 | | s
14 | | t
15 | | v
16 | | w
17 | | y
18 | | z
19 | | aa
20 | | ae
21 | | ah
22 | | ao
23 | | aw
24 | | ay
25 | | ch
26 | | dh
27 | | eh
28 | | er
29 | | ey
30 | | hh
31 | | ih
32 | | iy
33 | | jh
34 | | ng
35 | | ow
36 | | oy
37 | | sh
38 | | th
39 | | uh
40 | | uw
41 | | zh
42 | > SENT-END )
43 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/pa_mac_core.lo:
--------------------------------------------------------------------------------
1 | # src/hostapi/coreaudio/pa_mac_core.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_mac_core.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_mac_core.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/os/unix/pa_unix_hostapis.lo:
--------------------------------------------------------------------------------
1 | # src/os/unix/pa_unix_hostapis.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_unix_hostapis.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_unix_hostapis.o'
12 |
13 |
--------------------------------------------------------------------------------
/EN2/network~:
--------------------------------------------------------------------------------
1 | (SENT-START <
2 | sil
3 | | b
4 | | d
5 | | f
6 | | g
7 | | k
8 | | l
9 | | m
10 | | n
11 | | p
12 | | r
13 | | s
14 | | t
15 | | v
16 | | w
17 | | y
18 | | z
19 | | aa
20 | | ae
21 | | ah
22 | | ao
23 | | aw
24 | | ay
25 | | ch
26 | | dh
27 | | eh
28 | | er
29 | | ey
30 | | hh
31 | | ih
32 | | iy
33 | | jh
34 | | ng
35 | | ow
36 | | oy
37 | | sh
38 | | sp
39 | | th
40 | | uh
41 | | uw
42 | | zh
43 | > SENT-END )
44 |
--------------------------------------------------------------------------------
/gop/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | gop
4 |
5 |
6 |
7 |
8 |
9 | org.python.pydev.PyDevBuilder
10 |
11 |
12 |
13 |
14 |
15 | org.python.pydev.pythonNature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/EN_voxforge/macros:
--------------------------------------------------------------------------------
1 | ~o
2 | 1 25
3 | 25
4 | ~v "varFloor1"
5 | 25
6 | 9.307868e-01 5.385545e-01 7.424478e-01 7.377487e-01 6.968985e-01 6.063431e-01 6.213419e-01 5.895683e-01 5.111430e-01 4.341753e-01 3.562474e-01 3.377892e-01 4.580524e-02 3.394542e-02 3.346715e-02 4.325148e-02 4.172141e-02 3.799692e-02 4.000035e-02 4.166449e-02 3.664051e-02 3.150772e-02 2.806384e-02 2.477897e-02 4.954330e-02
7 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/skeleton/pa_hostapi_skeleton.lo:
--------------------------------------------------------------------------------
1 | # src/hostapi/skeleton/pa_hostapi_skeleton.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_hostapi_skeleton.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_hostapi_skeleton.o'
12 |
13 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.lo:
--------------------------------------------------------------------------------
1 | # src/hostapi/coreaudio/pa_mac_core_blocking.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_mac_core_blocking.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_mac_core_blocking.o'
12 |
13 |
--------------------------------------------------------------------------------
/gop/.pydevproject:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | /${PROJECT_DIR_NAME}
5 |
6 | python 2.7
7 | Default
8 |
9 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.lo:
--------------------------------------------------------------------------------
1 | # src/hostapi/coreaudio/pa_mac_core_utilities.lo - a libtool object file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # Name of the PIC object.
8 | pic_object='.libs/pa_mac_core_utilities.o'
9 |
10 | # Name of the non-PIC object
11 | non_pic_object='pa_mac_core_utilities.o'
12 |
13 |
--------------------------------------------------------------------------------
/EN2/dictionary:
--------------------------------------------------------------------------------
1 | SENT-START []
2 | SENT-END []
3 | b b
4 | d d
5 | f f
6 | g g
7 | k k
8 | l l
9 | m m
10 | n n
11 | p p
12 | r r
13 | s s
14 | t t
15 | v v
16 | w w
17 | y y
18 | z z
19 | aa aa
20 | ae ae
21 | ah ah
22 | ao ao
23 | aw aw
24 | ay ay
25 | ch ch
26 | dh dh
27 | eh eh
28 | er er
29 | ey ey
30 | hh hh
31 | ih ih
32 | iy iy
33 | jh jh
34 | ng ng
35 | ow ow
36 | oy oy
37 | sh sh
38 | sp sp
39 | th th
40 | uh uh
41 | uw uw
42 | zh zh
43 | sil sil
44 |
45 |
--------------------------------------------------------------------------------
/EN_voxforge/dictionary~:
--------------------------------------------------------------------------------
1 | aa aa
2 | ae ae
3 | ah ah
4 | ao ao
5 | aw aw
6 | ax ax
7 | ay ay
8 | b b
9 | ch ch
10 | d d
11 | dh dh
12 | dx dx
13 | eh eh
14 | er er
15 | ey ey
16 | f f
17 | g g
18 | hh hh
19 | ih ih
20 | ix ix
21 | iy iy
22 | jh jh
23 | k k
24 | l l
25 | m m
26 | n n
27 | ng ng
28 | ow ow
29 | oy oy
30 | p p
31 | r r
32 | s s
33 | sh sh
34 | sil sil
35 | sp sp
36 | t t
37 | th th
38 | uh uh
39 | uw uw
40 | v v
41 | w w
42 | y y
43 | z z
44 | zh zh
45 |
--------------------------------------------------------------------------------
/EN_voxforge/dictionary:
--------------------------------------------------------------------------------
1 | SENT-START []
2 | SENT-END []
3 | aa aa
4 | ae ae
5 | ah ah
6 | ao ao
7 | aw aw
8 | ax ax
9 | ay ay
10 | b b
11 | ch ch
12 | d d
13 | dh dh
14 | dx dx
15 | eh eh
16 | er er
17 | ey ey
18 | f f
19 | g g
20 | hh hh
21 | ih ih
22 | ix ix
23 | iy iy
24 | jh jh
25 | k k
26 | l l
27 | m m
28 | n n
29 | ng ng
30 | ow ow
31 | oy oy
32 | p p
33 | r r
34 | s s
35 | sh sh
36 | sil sil
37 | sp sp
38 | t t
39 | th th
40 | uh uh
41 | uw uw
42 | v v
43 | w w
44 | y y
45 | z z
46 | zh zh
47 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | JPortAudio
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/CallbackStream.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/CallbackStream.hxx"
2 |
3 | namespace portaudio
4 | {
5 | CallbackStream::CallbackStream()
6 | {
7 | }
8 |
9 | CallbackStream::~CallbackStream()
10 | {
11 | }
12 |
13 | // -----------------------------------------------------------------------------------
14 |
15 | double CallbackStream::cpuLoad() const
16 | {
17 | return Pa_GetStreamCpuLoad(stream_);
18 | }
19 |
20 | } // namespace portaudio
21 |
--------------------------------------------------------------------------------
/portaudio/fixdir.bat:
--------------------------------------------------------------------------------
1 | rem Use Astyle to fix style in 'C' files
2 | cd %1%
3 |
4 | fixlines -p *.c
5 | fixlines -p *.cpp
6 | fixlines -p *.cc
7 |
8 | astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.c
9 | astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.cpp
10 | astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.cc
11 | del *.orig
12 | @rem convert line terminators to Unix style LFs
13 | fixlines -u *.c
14 | fixlines -u *.cpp
15 | fixlines -u *.cc
16 | fixlines -u *.h
17 | del *.bak
18 |
19 | cd ..\
20 |
--------------------------------------------------------------------------------
/portaudio/testcvs/changeme.txt:
--------------------------------------------------------------------------------
1 | This is just a dopy little file used to test the CVS repository.
2 | Feel free to trash this file.
3 | Minor change.
4 | Another tweak.
5 | philburk tweak
6 | stephane test
7 | Phil changed this again on 2/21/02. Yawn...
8 | Bjorn test3!
9 | Phil tried to change this on 5/13/08
10 | Now we are using SVN instead of CVS. PB 2/10/10
11 | Test from builder-pc
12 |
13 | make a change using SVN on Ubuntu
14 | tweak
15 | testing
16 |
17 | PLB changing it to see if SVN broken
18 | Testing from Ubuntu with SVN on Assembla.
19 |
20 |
--------------------------------------------------------------------------------
/gop.txt:
--------------------------------------------------------------------------------
1 | 0.0000 MATCHED W=Her_eyes_are_ice_blue HH 18 HH 18
2 | 0.0000 MATCHED W=Her_eyes_are_ice_blue ER0 5 ER0 5
3 | 0.0000 MATCHED W=Her_eyes_are_ice_blue AY1 47 AY1 47
4 | 0.0000 MATCHED W=Her_eyes_are_ice_blue Z 3 Z 3
5 | 0.0000 MATCHED W=Her_eyes_are_ice_blue AA1 21 AA1 21
6 | 0.0000 MATCHED W=Her_eyes_are_ice_blue R 3 R 3
7 | 0.0000 MATCHED W=Her_eyes_are_ice_blue AY1 33 AY1 33
8 | 0.0000 MATCHED W=Her_eyes_are_ice_blue S 21 S 21
9 | 0.0000 MATCHED W=Her_eyes_are_ice_blue B 3 B 3
10 | 0.0000 MATCHED W=Her_eyes_are_ice_blue L 4 L 4
11 | 0.0000 MATCHED W=Her_eyes_are_ice_blue UW1 64 UW1 64
12 |
--------------------------------------------------------------------------------
/EN2/macros-ascii:
--------------------------------------------------------------------------------
1 | ~o
2 | 1 39
3 | 39
4 | ~v "varFloor1"
5 | 39
6 | 3.385713e+00 1.917585e+00 2.606210e+00 2.463254e+00 2.437273e+00 2.342229e+00 2.219388e+00 1.988688e+00 1.995921e+00 1.640217e+00 1.545779e+00 1.216489e+00 3.299907e+00 1.643127e-01 1.194014e-01 1.261929e-01 1.518926e-01 1.511972e-01 1.461874e-01 1.495598e-01 1.486754e-01 1.412356e-01 1.209141e-01 1.123571e-01 9.182821e-02 1.459205e-01 2.312691e-02 1.977897e-02 1.980354e-02 2.521011e-02 2.548724e-02 2.504556e-02 2.596463e-02 2.682797e-02 2.518337e-02 2.216582e-02 2.044927e-02 1.694511e-02 2.333806e-02
7 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/macros:
--------------------------------------------------------------------------------
1 | ~o
2 | 1 39
3 | 39
4 | ~v "varFloor1"
5 | 39
6 | 2.970232e-03 3.081554e-03 3.337499e-03 4.222610e-03 4.197491e-03 3.755180e-03 3.401211e-03 3.156109e-03 2.829444e-03 2.476874e-03 1.801175e-03 1.400571e-03 4.726708e-03 1.402909e-04 1.383319e-04 1.553502e-04 2.128327e-04 2.107100e-04 2.003327e-04 2.263938e-04 2.249473e-04 2.067962e-04 1.757082e-04 1.399256e-04 1.028699e-04 1.197369e-04 2.207970e-05 2.272787e-05 2.571406e-05 3.619217e-05 3.745446e-05 3.682210e-05 4.203814e-05 4.217610e-05 3.967129e-05 3.367268e-05 2.703490e-05 1.971991e-05 1.748702e-05
7 |
--------------------------------------------------------------------------------
/portaudio/README.configure.txt:
--------------------------------------------------------------------------------
1 | PortAudio uses "autoconf" tools to generate Makefiles for Linux and Mac platforms.
2 | The source for these are configure.in and Makefile.in
3 | If you modify either of these files then please run this command before
4 | testing and checking in your changes.
5 |
6 | autoreconf -if
7 |
8 | Then test a build by doing:
9 |
10 | ./configure
11 | make clean
12 | make
13 | sudo make install
14 |
15 | then check in the related files that are modified.
16 | These might include files like:
17 |
18 | configure
19 | config.guess
20 | depcomp
21 | install.sh
22 |
23 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/LICENSE:
--------------------------------------------------------------------------------
1 | License:
2 |
3 | Copyright (C) 2006 MacLean
4 |
5 | These files are free software; you can redistribute them and/or
6 | modify them under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | These files are distributed in the hope that they will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/sample.dict:
--------------------------------------------------------------------------------
1 | 0 [] sil
2 | 1 [] sil
3 | 2 [PHONE] f ow n
4 | 2 [CALL] k ao l
5 | 2 [GET] g eh t
6 | 3 [ME] m iy
7 | 4 [DIAL] d ay ax l
8 | 5 [KENNETH] k eh n ix th
9 | 5 [KEN] k eh n
10 | 6 [MACDOUGALL] m ax k d uw g ax l
11 | 7 [MACLEAN] m ax k l ey n
12 | 8 [STEVEN] s t iy v ax n
13 | 8 [STEVE] s t iy v
14 | 9 [YOUNG] y ah ng
15 | 10 [FIVE] f ay v
16 | 10 [FOUR] f ao r
17 | 10 [NINE] n ay n
18 | 10 [EIGHT] ey t
19 | 10 [OH] ow
20 | 10 [ONE] w ah n
21 | 10 [SEVEN] s eh v ax n
22 | 10 [SIX] s ih k s
23 | 10 [THREE] th r iy
24 | 10 [TWO] t uw
25 | 10 [ZERO(2)] z ih r ow
26 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/monophones:
--------------------------------------------------------------------------------
1 | EH2
2 | K
3 | S
4 | L
5 | AH0
6 | M
7 | EY1
8 | SH
9 | N
10 | P
11 | OY2
12 | T
13 | OW1
14 | Z
15 | W
16 | D
17 | AH1
18 | B
19 | EH1
20 | V
21 | IH1
22 | AA1
23 | R
24 | AY1
25 | ER0
26 | AE1
27 | AE2
28 | AO1
29 | NG
30 | G
31 | IH0
32 | TH
33 | IY2
34 | F
35 | DH
36 | IY1
37 | HH
38 | UH1
39 | IY0
40 | OY1
41 | OW2
42 | CH
43 | UW1
44 | IH2
45 | EH0
46 | AO2
47 | AA0
48 | AA2
49 | OW0
50 | EY0
51 | AE0
52 | AW2
53 | AW1
54 | EY2
55 | UW0
56 | AH2
57 | UW2
58 | AO0
59 | JH
60 | Y
61 | ZH
62 | AY2
63 | ER1
64 | UH2
65 | AY0
66 | ER2
67 | OY0
68 | UH0
69 | AW0
70 | br
71 | cg
72 | lg
73 | ls
74 | ns
75 | sil
76 | sp
77 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/sample.dfa:
--------------------------------------------------------------------------------
1 | 0 1 1 0 1
2 | 1 5 2 0 2
3 | 1 6 3 0 2
4 | 1 7 4 0 2
5 | 1 8 5 0 2
6 | 1 9 6 0 2
7 | 1 10 7 0 4
8 | 2 2 8 0 0
9 | 2 3 9 0 0
10 | 3 2 8 0 0
11 | 3 3 10 0 0
12 | 3 5 11 0 0
13 | 4 2 8 0 0
14 | 4 3 12 0 0
15 | 4 5 13 0 0
16 | 5 2 8 0 0
17 | 5 3 14 0 0
18 | 6 2 8 0 0
19 | 6 3 15 0 0
20 | 6 8 16 0 0
21 | 7 4 17 4 0
22 | 7 10 7 4 4
23 | 8 0 18 2 0
24 | 9 2 8 0 0
25 | 10 2 8 0 0
26 | 11 2 8 0 0
27 | 11 3 19 0 0
28 | 12 2 8 0 0
29 | 13 2 8 0 0
30 | 13 3 20 0 0
31 | 14 2 8 0 0
32 | 15 2 8 0 0
33 | 16 2 8 0 0
34 | 16 3 21 0 0
35 | 17 0 18 0 0
36 | 18 -1 -1 1 0
37 | 19 2 8 0 0
38 | 20 2 8 0 0
39 | 21 2 8 0 0
40 |
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/terminating_portaudio.dox:
--------------------------------------------------------------------------------
1 | /** @page terminating_portaudio Closing a Stream and Terminating PortAudio
2 | @ingroup tutorial
3 |
4 | When you are done with a stream, you should close it to free up resources:
5 |
6 | @code
7 | err = Pa_CloseStream( stream );
8 | if( err != paNoError ) goto error;
9 | @endcode
10 |
11 | We've already mentioned this in \ref initializing_portaudio, but in case you forgot, be sure to terminate PortAudio when you are done:
12 |
13 | @code
14 | err = Pa_Terminate( );
15 | if( err != paNoError ) goto error;
16 | @endcode
17 |
18 | Previous: \ref start_stop_abort | Next: \ref utility_functions
19 |
20 | */
--------------------------------------------------------------------------------
/portaudio/build/msvc/portaudio.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "portaudio"=".\portaudio.dsp" - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/audio_files_used:
--------------------------------------------------------------------------------
1 | Adminvox-05232006
2 | Adminvox-05262006
3 | an4
4 | cmu_com_kal_ldom
5 | cmu_us_awb_arctic
6 | cmu_us_bdl_arctic
7 | cmu_us_clb_arctic
8 | cmu_us_jmk_arctic
9 | cmu_us_ksp_arctic
10 | cmu_us_rms_arctic
11 | cmu_us_slt_arctic
12 | crxssi-10112006
13 | csawtell-10112006
14 | kmaclean-06092006
15 | kmaclean-06122006
16 | kmaclean-06152006
17 | kylegoetz-10122006
18 | mfread-10112006-1
19 | mfread-10112006-2
20 | mfread-10112006-3
21 | mfread-10112006-4
22 | mfread-10112006-5
23 | mfread-10112006-6
24 | mfread-10112006-7
25 | mfread-10112006-8
26 | mfread-10122006-1
27 | mfread-10122006-2
28 | pmahoney-10102006
29 | pmahoney-10122006
30 | rusty-10132006
31 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc6/static_library.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "static_library"=".\static_library.dsp" - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/network~:
--------------------------------------------------------------------------------
1 | (SENT-START <
2 | sil
3 | | EH2
4 | | K
5 | | S
6 | | L
7 | | AH0
8 | | M
9 | | EY1
10 | | SH
11 | | N
12 | | P
13 | | OY2
14 | | T
15 | | OW1
16 | | Z
17 | | W
18 | | D
19 | | AH1
20 | | B
21 | | EH1
22 | | V
23 | | IH1
24 | | AA1
25 | | R
26 | | AY1
27 | | ER0
28 | | AE1
29 | | AE2
30 | | AO1
31 | | NG
32 | | G
33 | | IH0
34 | | TH
35 | | IY2
36 | | F
37 | | DH
38 | | IY1
39 | | HH
40 | | UH1
41 | | IY0
42 | | OY1
43 | | OW2
44 | | CH
45 | | UW1
46 | | IH2
47 | | EH0
48 | | AO2
49 | | AA0
50 | | AA2
51 | | OW0
52 | | EY0
53 | | AE0
54 | | AW2
55 | | AW1
56 | | EY2
57 | | UW0
58 | | AH2
59 | | UW2
60 | | AO0
61 | | JH
62 | | Y
63 | | ZH
64 | | AY2
65 | | ER1
66 | | UH2
67 | | AY0
68 | | ER2
69 | | OY0
70 | | UH0
71 | | AW0
72 | sil
73 | > SENT-END )
74 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/network:
--------------------------------------------------------------------------------
1 | (SENT-START <
2 | sil
3 | | ns
4 | | EH2
5 | | K
6 | | S
7 | | L
8 | | AH0
9 | | M
10 | | EY1
11 | | SH
12 | | N
13 | | P
14 | | OY2
15 | | T
16 | | OW1
17 | | Z
18 | | W
19 | | D
20 | | AH1
21 | | B
22 | | EH1
23 | | V
24 | | IH1
25 | | AA1
26 | | R
27 | | AY1
28 | | ER0
29 | | AE1
30 | | AE2
31 | | AO1
32 | | NG
33 | | G
34 | | IH0
35 | | TH
36 | | IY2
37 | | F
38 | | DH
39 | | IY1
40 | | HH
41 | | UH1
42 | | IY0
43 | | OY1
44 | | OW2
45 | | CH
46 | | UW1
47 | | IH2
48 | | EH0
49 | | AO2
50 | | AA0
51 | | AA2
52 | | OW0
53 | | EY0
54 | | AE0
55 | | AW2
56 | | AW1
57 | | EY2
58 | | UW0
59 | | AH2
60 | | UW2
61 | | AO0
62 | | JH
63 | | Y
64 | | ZH
65 | | AY2
66 | | ER1
67 | | UH2
68 | | AY0
69 | | ER2
70 | | OY0
71 | | UH0
72 | | AW0
73 | sil
74 | > SENT-END )
75 |
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/exploring.dox:
--------------------------------------------------------------------------------
1 | /** @page exploring Exploring PortAudio
2 | @ingroup tutorial
3 |
4 | Now that you have a good idea of how PortAudio works, you can try out the example programs. You'll find them in the examples/ directory in the PortAudio distribution.
5 |
6 | For an example of playing a sine wave, see examples/paex_sine.c.
7 |
8 | For an example of recording and playing back a sound, see examples/paex_record.c.
9 |
10 | I also encourage you to examine the source for the PortAudio libraries. If you have suggestions on ways to improve them, please let us know. If you want to implement PortAudio on a new platform, please let us know as well so we can coordinate people's efforts.
11 |
12 |
13 | Previous: \ref blocking_read_write | Next: This is the end of the tutorial.
14 |
15 | */
--------------------------------------------------------------------------------
/milla2_align.phon:
--------------------------------------------------------------------------------
1 | DH IY1 Z sp SH UW1 Z sp F IH1 T sp M AY1 sp F IY1 T sp
2 | P AE1 T sp P UH1 T sp DH AH0 sp P AA1 T sp
3 | DH AH0 sp F UW1 L sp IH1 Z sp F UH1 L sp AH1 V sp F UW1 D sp
4 | HH IY1 sp B AO1 T sp AH0 sp B OW1 T sp
5 | HH ER0 sp B ER1 D sp N OW1 Z sp W ER1 D Z sp
6 | K AA1 D sp K AE1 N T sp K OW1 D sp
7 | B OY1 Z sp B AY1 sp B IH1 R sp
8 | V EH1 R IY0 sp V AY1 AH0 L AH0 N T sp V AE1 M P AY0 R Z sp
9 | DH AH0 sp G ER1 L Z sp HH AE1 V sp K ER1 L Z sp
10 | W EY1 T sp K EY1 T sp
11 | HH ER0 sp AY1 Z sp AA1 R sp AY1 S sp B L UW1 sp
12 | SH EH1 R IY0 sp IH1 Z sp L AY1 K sp CH EH1 R IY0 Z sp
13 | M AY1 sp K OW1 M sp IH1 Z sp IH0 N sp M AY1 sp HH OW1 M sp
14 | AY1 sp TH IH1 NG K sp IH1 T S sp AH0 sp G UH1 D sp TH IH1 NG sp
15 | DH AH0 sp JH EH1 T sp IH1 Z sp N AA1 T sp HH IY1 R sp Y EH1 T sp
16 | JH EH1 R IY0 sp L AH1 V Z sp SH EH1 R IY0 sp
17 |
--------------------------------------------------------------------------------
/milla2_align_wrongProns.phon:
--------------------------------------------------------------------------------
1 | DH IH1 Z sp SH UW1 Z sp F IY1 T sp M AY1 sp F IH1 T sp
2 | P AH1 T sp P UW1 T sp DH AH0 sp P UH1 T sp
3 | DH AH0 sp F UH1 L sp IH1 Z sp F UW1 L sp AH1 V sp F UH1 D sp
4 | HH IY1 sp B OW1 T sp AH0 sp B AO1 T sp
5 | HH EH0 sp B EH1 D sp N OW1 Z sp W EH1 D Z sp
6 | K AE1 D sp K AE1 N T sp K AA1 D sp
7 | V OY1 Z sp V AY1 sp V IH1 R sp
8 | B EH1 R IY0 sp B AY1 AH0 L AH0 N T sp B AE1 M P AY0 R Z sp
9 | DH AH0 sp K ER1 L Z sp HH AE1 V sp G ER1 L Z sp
10 | GW EY1 T sp W EY1 T sp
11 | HH ER0 sp AY1 S sp AA1 R sp AY1 Z sp B L UW1 sp
12 | CH EH1 R IY0 sp IH1 Z sp L AY1 K sp CH EH1 R IY0 Z sp
13 | M AY1 sp HH OW1 M sp IH1 Z sp IH0 N sp M AY1 sp K OW1 M sp
14 | AY1 sp TH IH1 NG sp IH1 T S sp AH0 sp G UH1 D sp TH IH1 NG K sp
15 | DH AH0 sp Y EH1 T sp IH1 Z sp N AA1 T sp HH IY1 R sp JH EH1 T sp
16 | Y EH1 R IY0 sp L AH1 V Z sp CH EH1 R IY0 sp
17 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/dictionary~:
--------------------------------------------------------------------------------
1 | EH2 EH2
2 | K K
3 | S S
4 | L L
5 | AH0 AH0
6 | M M
7 | EY1 EY1
8 | SH SH
9 | N N
10 | P P
11 | OY2 OY2
12 | T T
13 | OW1 OW1
14 | Z Z
15 | W W
16 | D D
17 | AH1 AH1
18 | B B
19 | EH1 EH1
20 | V V
21 | IH1 IH1
22 | AA1 AA1
23 | R R
24 | AY1 AY1
25 | ER0 ER0
26 | AE1 AE1
27 | AE2 AE2
28 | AO1 AO1
29 | NG NG
30 | G G
31 | IH0 IH0
32 | TH TH
33 | IY2 IY2
34 | F F
35 | DH DH
36 | IY1 IY1
37 | HH HH
38 | UH1 UH1
39 | IY0 IY0
40 | OY1 OY1
41 | OW2 OW2
42 | CH CH
43 | UW1 UW1
44 | IH2 IH2
45 | EH0 EH0
46 | AO2 AO2
47 | AA0 AA0
48 | AA2 AA2
49 | OW0 OW0
50 | EY0 EY0
51 | AE0 AE0
52 | AW2 AW2
53 | AW1 AW1
54 | EY2 EY2
55 | UW0 UW0
56 | AH2 AH2
57 | UW2 UW2
58 | AO0 AO0
59 | JH JH
60 | Y Y
61 | ZH ZH
62 | AY2 AY2
63 | ER1 ER1
64 | UH2 UH2
65 | AY0 AY0
66 | ER2 ER2
67 | OY0 OY0
68 | UH0 UH0
69 | AW0 AW0
70 | br br
71 | cg cg
72 | lg lg
73 | ls ls
74 | ns ns
75 | sil sil
76 | sp sp
77 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/CallbackInterface.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/CallbackInterface.hxx"
2 |
3 | namespace portaudio
4 | {
5 |
6 | namespace impl
7 | {
8 |
9 | //////
10 | /// Adapts any CallbackInterface object to a C-callable function (ie this function). A
11 | /// pointer to the object should be passed as ``userData'' when setting up the callback.
12 | //////
13 | int callbackInterfaceToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
14 | const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
15 | {
16 | CallbackInterface *cb = static_cast(userData);
17 | return cb->paCallbackFun(inputBuffer, outputBuffer, numFrames, timeInfo, statusFlags);
18 | }
19 |
20 |
21 | } // namespace impl
22 |
23 | } // namespace portaudio
24 |
25 |
26 |
--------------------------------------------------------------------------------
/portaudio/examples/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Example projects
2 |
3 | MACRO(ADD_EXAMPLE appl_name)
4 | ADD_EXECUTABLE(${appl_name} "${appl_name}.c")
5 | TARGET_LINK_LIBRARIES(${appl_name} portaudio_static)
6 | ENDMACRO(ADD_EXAMPLE)
7 |
8 | MACRO(ADD_EXAMPLE_CPP appl_name)
9 | ADD_EXECUTABLE(${appl_name} "${appl_name}.cpp")
10 | TARGET_LINK_LIBRARIES(${appl_name} portaudio_static)
11 | ENDMACRO(ADD_EXAMPLE_CPP)
12 |
13 | ADD_EXAMPLE(pa_devs)
14 | ADD_EXAMPLE(pa_fuzz)
15 | ADD_EXAMPLE(paex_mono_asio_channel_select)
16 | ADD_EXAMPLE(paex_ocean_shore)
17 | ADD_EXAMPLE(paex_pink)
18 | ADD_EXAMPLE(paex_read_write_wire)
19 | ADD_EXAMPLE(paex_record)
20 | ADD_EXAMPLE(paex_record_file)
21 | ADD_EXAMPLE(paex_saw)
22 | ADD_EXAMPLE(paex_sine)
23 | ADD_EXAMPLE_CPP(paex_sine_c++)
24 | ADD_EXAMPLE(paex_wmme_ac3)
25 | ADD_EXAMPLE(paex_wmme_surround)
26 | ADD_EXAMPLE(paex_write_sine)
27 | ADD_EXAMPLE(paex_write_sine_nonint)
28 |
--------------------------------------------------------------------------------
/EN_p2fa_16000/dictionary:
--------------------------------------------------------------------------------
1 | SENT-START []
2 | SENT-END []
3 | EH2 EH2
4 | K K
5 | S S
6 | L L
7 | AH0 AH0
8 | M M
9 | EY1 EY1
10 | SH SH
11 | N N
12 | P P
13 | OY2 OY2
14 | T T
15 | OW1 OW1
16 | Z Z
17 | W W
18 | D D
19 | AH1 AH1
20 | B B
21 | EH1 EH1
22 | V V
23 | IH1 IH1
24 | AA1 AA1
25 | R R
26 | AY1 AY1
27 | ER0 ER0
28 | AE1 AE1
29 | AE2 AE2
30 | AO1 AO1
31 | NG NG
32 | G G
33 | IH0 IH0
34 | TH TH
35 | IY2 IY2
36 | F F
37 | DH DH
38 | IY1 IY1
39 | HH HH
40 | UH1 UH1
41 | IY0 IY0
42 | OY1 OY1
43 | OW2 OW2
44 | CH CH
45 | UW1 UW1
46 | IH2 IH2
47 | EH0 EH0
48 | AO2 AO2
49 | AA0 AA0
50 | AA2 AA2
51 | OW0 OW0
52 | EY0 EY0
53 | AE0 AE0
54 | AW2 AW2
55 | AW1 AW1
56 | EY2 EY2
57 | UW0 UW0
58 | AH2 AH2
59 | UW2 UW2
60 | AO0 AO0
61 | JH JH
62 | Y Y
63 | ZH ZH
64 | AY2 AY2
65 | ER1 ER1
66 | UH2 UH2
67 | AY0 AY0
68 | ER2 ER2
69 | OY0 OY0
70 | UH0 UH0
71 | AW0 AW0
72 | br br
73 | cg cg
74 | lg lg
75 | ls ls
76 | ns ns
77 | sil sil
78 | sp sp
79 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/sample.voca:
--------------------------------------------------------------------------------
1 | % NS_B
2 | sil
3 |
4 | % NS_E
5 | sil
6 |
7 | % CALL_V
8 | PHONE f ow n
9 | CALL k ao l
10 | GET g eh t
11 |
12 | % PRONOUN
13 | ME m iy
14 |
15 | % DIAL_V
16 | DIAL d ay ax l
17 |
18 | % F_NAME_KENNETH
19 | KENNETH k eh n ix th
20 | KEN k eh n
21 |
22 | % L_NAME_KENNETH_MACDOUGALL
23 | MACDOUGALL m ax k d uw g ax l
24 |
25 | % L_NAME_KENNETH_MACLEAN
26 | MACLEAN m ax k l ey n
27 |
28 | % F_NAME_STEVE_YOUNG
29 | STEVEN s t iy v ax n
30 | STEVE s t iy v
31 |
32 | % L_NAME_STEVE_YOUNG
33 | YOUNG y ah ng
34 |
35 |
36 | % DIGIT
37 | FIVE f ay v
38 | FOUR f ao r
39 | NINE n ay n
40 | EIGHT ey t
41 | OH ow
42 | ONE w ah n
43 | SEVEN s eh v ax n
44 | SIX s ih k s
45 | THREE th r iy
46 | TWO t uw
47 | ZERO(2) z ih r ow
48 |
49 |
50 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/Makefile.am:
--------------------------------------------------------------------------------
1 | pkginclude_HEADERS = \
2 | portaudiocpp/AutoSystem.hxx \
3 | portaudiocpp/BlockingStream.hxx \
4 | portaudiocpp/CallbackInterface.hxx \
5 | portaudiocpp/CallbackStream.hxx \
6 | portaudiocpp/CFunCallbackStream.hxx \
7 | portaudiocpp/CppFunCallbackStream.hxx \
8 | portaudiocpp/Device.hxx \
9 | portaudiocpp/DirectionSpecificStreamParameters.hxx \
10 | portaudiocpp/Exception.hxx \
11 | portaudiocpp/HostApi.hxx \
12 | portaudiocpp/InterfaceCallbackStream.hxx \
13 | portaudiocpp/MemFunCallbackStream.hxx \
14 | portaudiocpp/PortAudioCpp.hxx \
15 | portaudiocpp/SampleDataFormat.hxx \
16 | portaudiocpp/Stream.hxx \
17 | portaudiocpp/StreamParameters.hxx \
18 | portaudiocpp/SystemDeviceIterator.hxx \
19 | portaudiocpp/SystemHostApiIterator.hxx \
20 | portaudiocpp/System.hxx
21 |
22 | # portaudiocpp/AsioDeviceAdapter.hxx
23 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h:
--------------------------------------------------------------------------------
1 | /**
2 | * This file has no copyright assigned and is placed in the Public Domain.
3 | * This file is part of the w64 mingw-runtime package.
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 | */
6 | #define INITGUID
7 | #include
8 |
9 | #ifndef DECLSPEC_SELECTANY
10 | #define DECLSPEC_SELECTANY __declspec(selectany)
11 | #endif
12 |
13 | #ifdef DEFINE_GUIDEX
14 | #undef DEFINE_GUIDEX
15 | #endif
16 |
17 | #ifdef __cplusplus
18 | #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID DECLSPEC_SELECTANY name = { STATICGUIDOF(name) }
19 | #else
20 | #define DEFINE_GUIDEX(name) const CDECL GUID DECLSPEC_SELECTANY name = { STATICGUIDOF(name) }
21 | #endif
22 | #ifndef STATICGUIDOF
23 | #define STATICGUIDOF(guid) STATIC_##guid
24 | #endif
25 |
26 | #ifndef DEFINE_WAVEFORMATEX_GUID
27 | #define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x),0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71
28 | #endif
29 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/wasapi/mingw-include/propkeydef.h:
--------------------------------------------------------------------------------
1 | #ifndef PID_FIRST_USABLE
2 | #define PID_FIRST_USABLE 2
3 | #endif
4 |
5 | #ifndef REFPROPERTYKEY
6 | #ifdef __cplusplus
7 | #define REFPROPERTYKEY const PROPERTYKEY &
8 | #else // !__cplusplus
9 | #define REFPROPERTYKEY const PROPERTYKEY * __MIDL_CONST
10 | #endif // __cplusplus
11 | #endif //REFPROPERTYKEY
12 |
13 | #ifdef DEFINE_PROPERTYKEY
14 | #undef DEFINE_PROPERTYKEY
15 | #endif
16 |
17 | #ifdef INITGUID
18 | #define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const PROPERTYKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
19 | #else
20 | #define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const PROPERTYKEY name
21 | #endif // INITGUID
22 |
23 | #ifndef IsEqualPropertyKey
24 | #define IsEqualPropertyKey(a, b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid, (b).fmtid) )
25 | #endif // IsEqualPropertyKey
26 |
27 |
--------------------------------------------------------------------------------
/milla2.phon:
--------------------------------------------------------------------------------
1 | DH Z sp SH UW1 Z sp F T sp M AY1 sp F T sp
2 | P T sp P T sp DH AH0 sp P T sp
3 | DH AH0 sp F L sp IH1 Z sp F L sp AH1 V sp F D sp
4 | HH IY1 sp B T sp AH0 sp B T sp
5 | HH sp B D sp N OW1 Z sp W D Z sp
6 | K D sp K AE1 N T sp K D sp
7 | OY1 Z sp AY1 sp IH1 R sp
8 | EH1 R IY0 sp AY1 AH0 L AH0 N T sp AE1 M P AY0 R Z sp
9 | DH AH0 sp ER1 L Z sp HH AE1 V sp ER1 L Z sp
10 | EY1 T sp EY1 T sp
11 | HH ER0 sp AY1 sp AA1 R sp AY1 sp B L UW1 sp
12 | EH1 R IY0 sp IH1 Z sp L AY1 K sp EH1 R IY0 Z sp
13 | M AY1 sp OW1 M sp IH1 Z sp IH0 N sp M AY1 sp OW1 M sp
14 | AY1 sp TH IH1 sp IH1 T S sp AH0 sp G UH1 D sp TH IH1 sp
15 | DH AH0 sp EH1 T sp IH1 Z sp N AA1 T sp HH IY1 R sp EH1 T sp
16 | EH1 R IY0 sp L AH1 V Z sp EH1 R IY0 sp
17 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/SampleDataFormat.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_SAMPLEDATAFORMAT_HXX
2 | #define INCLUDED_PORTAUDIO_SAMPLEDATAFORMAT_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | // ---------------------------------------------------------------------------------------
9 |
10 | namespace portaudio
11 | {
12 |
13 |
14 | //////
15 | /// @brief PortAudio sample data formats.
16 | ///
17 | /// Small helper enum to wrap the PortAudio defines.
18 | //////
19 | enum SampleDataFormat
20 | {
21 | INVALID_FORMAT = 0,
22 | FLOAT32 = paFloat32,
23 | INT32 = paInt32,
24 | INT24 = paInt24,
25 | INT16 = paInt16,
26 | INT8 = paInt8,
27 | UINT8 = paUInt8
28 | };
29 |
30 |
31 | } // namespace portaudio
32 |
33 | // ---------------------------------------------------------------------------------------
34 |
35 | #endif // INCLUDED_PORTAUDIO_SAMPLEDATAFORMAT_HXX
36 |
--------------------------------------------------------------------------------
/EN_voxforge/Julius_AcousticModels_16kHz-16bit_MFCC_O_D_0_1_1/sample.grammar:
--------------------------------------------------------------------------------
1 | S : NS_B SENT NS_E
2 | SENT: CALL_V F_NAME_STEVE_YOUNG L_NAME_STEVE_YOUNG
3 | SENT: CALL_V F_NAME_STEVE_YOUNG
4 | SENT: CALL_V L_NAME_STEVE_YOUNG
5 | SENT: CALL_V PRONOUN F_NAME_STEVE_YOUNG L_NAME_STEVE_YOUNG
6 | SENT: CALL_V PRONOUN F_NAME_STEVE_YOUNG
7 | SENT: CALL_V PRONOUN L_NAME_STEVE_YOUNG
8 | SENT: CALL_V F_NAME_KENNETH L_NAME_KENNETH_MACDOUGALL
9 | SENT: CALL_V F_NAME_KENNETH
10 | SENT: CALL_V L_NAME_KENNETH_MACDOUGALL
11 | SENT: CALL_V PRONOUN F_NAME_KENNETH L_NAME_KENNETH_MACDOUGALL
12 | SENT: CALL_V PRONOUN F_NAME_KENNETH
13 | SENT: CALL_V PRONOUN L_NAME_KENNETH_MACDOUGALL
14 | SENT: CALL_V F_NAME_KENNETH L_NAME_KENNETH_MACLEAN
15 | SENT: CALL_V F_NAME_KENNETH
16 | SENT: CALL_V L_NAME_KENNETH_MACLEAN
17 | SENT: CALL_V PRONOUN F_NAME_KENNETH L_NAME_KENNETH_MACLEAN
18 | SENT: CALL_V PRONOUN F_NAME_KENNETH
19 | SENT: CALL_V PRONOUN L_NAME_KENNETH_MACLEAN
20 |
21 | S : NS_B DIAL_V WORD_LOOP NS_E
22 | WORD_LOOP: WORD_LOOP DIGIT
23 | WORD_LOOP: DIGIT
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc7_1/static_library.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 8.00
2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static_library", "static_library.vcproj", "{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
3 | ProjectSection(ProjectDependencies) = postProject
4 | EndProjectSection
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfiguration) = preSolution
8 | Debug = Debug
9 | Release = Release
10 | EndGlobalSection
11 | GlobalSection(ProjectConfiguration) = postSolution
12 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.ActiveCfg = Debug|Win32
13 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.Build.0 = Debug|Win32
14 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.ActiveCfg = Release|Win32
15 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.Build.0 = Release|Win32
16 | EndGlobalSection
17 | GlobalSection(ExtensibilityGlobals) = postSolution
18 | EndGlobalSection
19 | GlobalSection(ExtensibilityAddIns) = postSolution
20 | EndGlobalSection
21 | EndGlobal
22 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/lib/Makefile.am:
--------------------------------------------------------------------------------
1 | SRCDIR = $(top_srcdir)/source/portaudiocpp
2 |
3 | lib_LTLIBRARIES = libportaudiocpp.la
4 |
5 | LDADD = libportaudiocpp.la
6 |
7 | libportaudiocpp_la_LDFLAGS = -version-info $(LT_VERSION_INFO) -no-undefined
8 |
9 | libportaudiocpp_la_LIBADD = $(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
10 | libportaudiocpp_la_SOURCES = \
11 | $(SRCDIR)/BlockingStream.cxx \
12 | $(SRCDIR)/CallbackInterface.cxx \
13 | $(SRCDIR)/CallbackStream.cxx \
14 | $(SRCDIR)/CFunCallbackStream.cxx \
15 | $(SRCDIR)/CppFunCallbackStream.cxx \
16 | $(SRCDIR)/Device.cxx \
17 | $(SRCDIR)/DirectionSpecificStreamParameters.cxx \
18 | $(SRCDIR)/Exception.cxx \
19 | $(SRCDIR)/HostApi.cxx \
20 | $(SRCDIR)/InterfaceCallbackStream.cxx \
21 | $(SRCDIR)/MemFunCallbackStream.cxx \
22 | $(SRCDIR)/Stream.cxx \
23 | $(SRCDIR)/StreamParameters.cxx \
24 | $(SRCDIR)/System.cxx \
25 | $(SRCDIR)/SystemDeviceIterator.cxx \
26 | $(SRCDIR)/SystemHostApiIterator.cxx
27 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc6/devs_example.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "devs_example"=".\devs_example.dsp" - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | Begin Project Dependency
15 | Project_Dep_Name static_library
16 | End Project Dependency
17 | }}}
18 |
19 | ###############################################################################
20 |
21 | Project: "static_library"=".\static_library.dsp" - Package Owner=<4>
22 |
23 | Package=<5>
24 | {{{
25 | }}}
26 |
27 | Package=<4>
28 | {{{
29 | }}}
30 |
31 | ###############################################################################
32 |
33 | Global:
34 |
35 | Package=<5>
36 | {{{
37 | }}}
38 |
39 | Package=<3>
40 | {{{
41 | }}}
42 |
43 | ###############################################################################
44 |
45 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc6/sine_example.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "sine_example"=".\sine_example.dsp" - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | Begin Project Dependency
15 | Project_Dep_Name static_library
16 | End Project Dependency
17 | }}}
18 |
19 | ###############################################################################
20 |
21 | Project: "static_library"=".\static_library.dsp" - Package Owner=<4>
22 |
23 | Package=<5>
24 | {{{
25 | }}}
26 |
27 | Package=<4>
28 | {{{
29 | }}}
30 |
31 | ###############################################################################
32 |
33 | Global:
34 |
35 | Package=<5>
36 | {{{
37 | }}}
38 |
39 | Package=<3>
40 | {{{
41 | }}}
42 |
43 | ###############################################################################
44 |
45 |
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio.exp:
--------------------------------------------------------------------------------
1 | PaMacCore_GetBufferSizeRange
2 | PaMacCore_GetChannelName
3 | PaMacCore_GetStreamInputDevice
4 | PaMacCore_GetStreamOutputDevice
5 | PaMacCore_Initialize
6 | PaMacCore_SetError
7 | PaMacCore_SetUnixError
8 | PaMacCore_SetupChannelMap
9 | PaMacCore_SetupStreamInfo
10 | Pa_AbortStream
11 | Pa_CloseStream
12 | Pa_GetDefaultHostApi
13 | Pa_GetDefaultInputDevice
14 | Pa_GetDefaultOutputDevice
15 | Pa_GetDeviceCount
16 | Pa_GetDeviceInfo
17 | Pa_GetErrorText
18 | Pa_GetHostApiCount
19 | Pa_GetHostApiInfo
20 | Pa_GetLastHostErrorInfo
21 | Pa_GetSampleSize
22 | Pa_GetStreamCpuLoad
23 | Pa_GetStreamInfo
24 | Pa_GetStreamReadAvailable
25 | Pa_GetStreamTime
26 | Pa_GetStreamWriteAvailable
27 | Pa_GetVersion
28 | Pa_GetVersionText
29 | Pa_HostApiDeviceIndexToDeviceIndex
30 | Pa_HostApiTypeIdToHostApiIndex
31 | Pa_Initialize
32 | Pa_IsFormatSupported
33 | Pa_IsStreamActive
34 | Pa_IsStreamStopped
35 | Pa_OpenDefaultStream
36 | Pa_OpenStream
37 | Pa_ReadStream
38 | Pa_SetStreamFinishedCallback
39 | Pa_Sleep
40 | Pa_StartStream
41 | Pa_StopStream
42 | Pa_Terminate
43 | Pa_WriteStream
44 |
--------------------------------------------------------------------------------
/portaudio/qa/loopback/src/biquad_filter.h:
--------------------------------------------------------------------------------
1 | #ifndef _BIQUADFILTER_H
2 | #define _BIQUADFILTER_H
3 |
4 |
5 | /**
6 | * Unit_BiquadFilter implements a second order IIR filter.
7 | *
8 | * @author (C) 2002 Phil Burk, SoftSynth.com, All Rights Reserved
9 | */
10 |
11 | #define BIQUAD_MIN_RATIO (0.000001)
12 | #define BIQUAD_MIN_Q (0.00001)
13 |
14 | typedef struct BiquadFilter_s
15 | {
16 | double xn1; // storage for delayed signals
17 | double xn2;
18 | double yn1;
19 | double yn2;
20 |
21 | double a0; // coefficients
22 | double a1;
23 | double a2;
24 |
25 | double b1;
26 | double b2;
27 |
28 | double cos_omega;
29 | double sin_omega;
30 | double alpha;
31 | } BiquadFilter;
32 |
33 | void BiquadFilter_SetupHighPass( BiquadFilter *filter, double ratio, double Q );
34 | void BiquadFilter_SetupNotch( BiquadFilter *filter, double ratio, double Q );
35 |
36 | void BiquadFilter_Filter( BiquadFilter *filter, float *inputs, float *outputs, int numSamples );
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/wasapi/readme.txt:
--------------------------------------------------------------------------------
1 | **************
2 | * WASAPI API *
3 | **************
4 |
5 | ----------------------------------------
6 | Microsoft Visual Studio 2005SP1/2008/10
7 | ----------------------------------------
8 | No specific actions are needed to compile WASAPI API under Visual Studio.
9 | You are only required to install min. Windows Vista SDK (v6.0A) prior
10 | compilation.
11 |
12 | ----------------------------------------
13 | MinGW (GCC 32-bit)/ MinGW64 (GCC 64-bit)
14 | ----------------------------------------
15 | To compile under MinGW you are required to include 'mingw-include' directory
16 | which contains necessary files with WASAPI API. These files are modified
17 | in order to be compiled by MinGW compiler. These files are taken from
18 | Windows Vista SDK (v6.0A). MinGW compilation is tested and proved to be
19 | fully working under 32-bit and 64-bit modes.
20 | MinGW (32-bit) tested: gcc version 4.4.0 (GCC)
21 | MinGW64 (64-bit) tested: gcc version 4.4.4 20100226 (prerelease) (GCC)
22 |
23 | PortAudio
24 | /Dmitry Kostjuchenko/
25 | 04.03.2010
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/initializing_portaudio.dox:
--------------------------------------------------------------------------------
1 | /** @page initializing_portaudio Initializing PortAudio
2 | @ingroup tutorial
3 |
4 | @section tut_init1 Initializing PortAudio
5 |
6 | Before making any other calls to PortAudio, you 'must' call Pa_Initialize(). This will trigger a scan of available devices which can be queried later. Like most PA functions, it will return a result of type paError. If the result is not paNoError, then an error has occurred.
7 | @code
8 | err = Pa_Initialize();
9 | if( err != paNoError ) goto error;
10 | @endcode
11 |
12 | You can get a text message that explains the error message by passing it to Pa_GetErrorText( err ). For Example:
13 |
14 | @code
15 | printf( "PortAudio error: %s\n", Pa_GetErrorText( err ) );
16 | @endcode
17 |
18 | It is also important, when you are done with PortAudio, to Terminate it:
19 |
20 | @code
21 | err = Pa_Terminate();
22 | if( err != paNoError )
23 | printf( "PortAudio error: %s\n", Pa_GetErrorText( err ) );
24 | @endcode
25 |
26 |
27 | Previous: \ref writing_a_callback | Next: \ref open_default_stream
28 |
29 | */
--------------------------------------------------------------------------------
/portaudio/cmake_support/options_cmake.h.in:
--------------------------------------------------------------------------------
1 | /* $Id: $
2 |
3 | !!! @GENERATED_MESSAGE@ !!!
4 |
5 | Header file configured by CMake to convert CMake options/vars to macros. It is done this way because if set via
6 | preprocessor options, MSVC f.i. has no way of knowing when an option (or var) changes as there is no dependency chain.
7 |
8 | The generated "options_cmake.h" should be included like so:
9 |
10 | #ifdef PORTAUDIO_CMAKE_GENERATED
11 | #include "options_cmake.h"
12 | #endif
13 |
14 | so that non-CMake build environments are left intact.
15 |
16 | Source template: cmake_support/options_cmake.h.in
17 | */
18 |
19 | #ifdef _WIN32
20 | #if defined(PA_USE_ASIO) || defined(PA_USE_DS) || defined(PA_USE_WMME) || defined(PA_USE_WASAPI) || defined(PA_USE_WDMKS)
21 | #error "This header needs to be included before pa_hostapi.h!!"
22 | #endif
23 |
24 | #cmakedefine01 PA_USE_ASIO
25 | #cmakedefine01 PA_USE_DS
26 | #cmakedefine01 PA_USE_WMME
27 | #cmakedefine01 PA_USE_WASAPI
28 | #cmakedefine01 PA_USE_WDMKS
29 | #else
30 | #error "Platform currently not supported by CMake script"
31 | #endif
32 |
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio-symbols.expsym:
--------------------------------------------------------------------------------
1 | _PaMacCore_GetBufferSizeRange
2 | _PaMacCore_GetChannelName
3 | _PaMacCore_GetStreamInputDevice
4 | _PaMacCore_GetStreamOutputDevice
5 | _PaMacCore_Initialize
6 | _PaMacCore_SetError
7 | _PaMacCore_SetUnixError
8 | _PaMacCore_SetupChannelMap
9 | _PaMacCore_SetupStreamInfo
10 | _Pa_AbortStream
11 | _Pa_CloseStream
12 | _Pa_GetDefaultHostApi
13 | _Pa_GetDefaultInputDevice
14 | _Pa_GetDefaultOutputDevice
15 | _Pa_GetDeviceCount
16 | _Pa_GetDeviceInfo
17 | _Pa_GetErrorText
18 | _Pa_GetHostApiCount
19 | _Pa_GetHostApiInfo
20 | _Pa_GetLastHostErrorInfo
21 | _Pa_GetSampleSize
22 | _Pa_GetStreamCpuLoad
23 | _Pa_GetStreamInfo
24 | _Pa_GetStreamReadAvailable
25 | _Pa_GetStreamTime
26 | _Pa_GetStreamWriteAvailable
27 | _Pa_GetVersion
28 | _Pa_GetVersionText
29 | _Pa_HostApiDeviceIndexToDeviceIndex
30 | _Pa_HostApiTypeIdToHostApiIndex
31 | _Pa_Initialize
32 | _Pa_IsFormatSupported
33 | _Pa_IsStreamActive
34 | _Pa_IsStreamStopped
35 | _Pa_OpenDefaultStream
36 | _Pa_OpenStream
37 | _Pa_ReadStream
38 | _Pa_SetStreamFinishedCallback
39 | _Pa_Sleep
40 | _Pa_StartStream
41 | _Pa_StopStream
42 | _Pa_Terminate
43 | _Pa_WriteStream
44 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/AsioDeviceAdapter.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
2 | #define INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
3 |
4 | namespace portaudio
5 | {
6 |
7 | // Forward declaration(s):
8 | class Device;
9 |
10 | // Declaration(s):
11 | //////
12 | /// @brief Adapts the given Device to an ASIO specific extension.
13 | ///
14 | /// Deleting the AsioDeviceAdapter does not affect the underlaying
15 | /// Device.
16 | //////
17 | class AsioDeviceAdapter
18 | {
19 | public:
20 | AsioDeviceAdapter(Device &device);
21 |
22 | Device &device();
23 |
24 | long minBufferSize() const;
25 | long maxBufferSize() const;
26 | long preferredBufferSize() const;
27 | long granularity() const;
28 |
29 | void showControlPanel(void *systemSpecific);
30 |
31 | const char *inputChannelName(int channelIndex) const;
32 | const char *outputChannelName(int channelIndex) const;
33 |
34 | private:
35 | Device *device_;
36 |
37 | long minBufferSize_;
38 | long maxBufferSize_;
39 | long preferredBufferSize_;
40 | long granularity_;
41 | };
42 | }
43 |
44 | #endif // INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
45 |
--------------------------------------------------------------------------------
/portaudio/pablio/pablio.def:
--------------------------------------------------------------------------------
1 | LIBRARY PABLIO
2 | DESCRIPTION 'PABLIO Portable Audio Blocking I/O'
3 |
4 | EXPORTS
5 | ; Explicit exports can go here
6 | Pa_Initialize @1
7 | Pa_Terminate @2
8 | Pa_GetHostError @3
9 | Pa_GetErrorText @4
10 | Pa_CountDevices @5
11 | Pa_GetDefaultInputDeviceID @6
12 | Pa_GetDefaultOutputDeviceID @7
13 | Pa_GetDeviceInfo @8
14 | Pa_OpenStream @9
15 | Pa_OpenDefaultStream @10
16 | Pa_CloseStream @11
17 | Pa_StartStream @12
18 | Pa_StopStream @13
19 | Pa_StreamActive @14
20 | Pa_StreamTime @15
21 | Pa_GetCPULoad @16
22 | Pa_GetMinNumBuffers @17
23 | Pa_Sleep @18
24 |
25 | OpenAudioStream @19
26 | CloseAudioStream @20
27 | WriteAudioStream @21
28 | ReadAudioStream @22
29 |
30 | Pa_GetSampleSize @23
31 |
32 | ;123456789012345678901234567890123456
33 | ;000000000111111111122222222223333333
34 |
35 |
36 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/CallbackStream.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
2 | #define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | #include "portaudiocpp/Stream.hxx"
9 |
10 | // ---------------------------------------------------------------------------------------
11 |
12 | // Declaration(s):
13 | namespace portaudio
14 | {
15 |
16 |
17 | //////
18 | /// @brief Base class for all Streams which use a callback-based mechanism.
19 | //////
20 | class CallbackStream : public Stream
21 | {
22 | protected:
23 | CallbackStream();
24 | virtual ~CallbackStream();
25 |
26 | public:
27 | // stream info (time-varying)
28 | double cpuLoad() const;
29 |
30 | private:
31 | CallbackStream(const CallbackStream &); // non-copyable
32 | CallbackStream &operator=(const CallbackStream &); // non-copyable
33 | };
34 |
35 |
36 | } // namespace portaudio
37 |
38 | // ---------------------------------------------------------------------------------------
39 |
40 | #endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
41 |
--------------------------------------------------------------------------------
/portaudio/lib/libportaudio.la:
--------------------------------------------------------------------------------
1 | # libportaudio.la - a libtool library file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # The name that we can dlopen(3).
8 | dlname='libportaudio.2.dylib'
9 |
10 | # Names of this library.
11 | library_names='libportaudio.2.dylib libportaudio.dylib'
12 |
13 | # The name of the static archive.
14 | old_library='libportaudio.a'
15 |
16 | # Linker flags that can not go in dependency_libs.
17 | inherited_linker_flags=' -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon'
18 |
19 | # Libraries that this one depends upon.
20 | dependency_libs=''
21 |
22 | # Names of additional weak libraries provided by this library
23 | weak_library_names=''
24 |
25 | # Version information for libportaudio.
26 | current=2
27 | age=0
28 | revision=0
29 |
30 | # Is this an already installed library?
31 | installed=no
32 |
33 | # Should we warn about portability when linking against -modules?
34 | shouldnotlink=no
35 |
36 | # Files to dlopen/dlpreopen
37 | dlopen=''
38 | dlpreopen=''
39 |
40 | # Directory that this library needs to be installed in:
41 | libdir='/usr/local/lib'
42 |
--------------------------------------------------------------------------------
/portaudio/cmake_support/FindASIOSDK.cmake:
--------------------------------------------------------------------------------
1 | # $Id: $
2 | #
3 | # - Try to find the ASIO SDK
4 | # Once done this will define
5 | #
6 | # ASIOSDK_FOUND - system has ASIO SDK
7 | # ASIOSDK_ROOT_DIR - path to the ASIO SDK base directory
8 | # ASIOSDK_INCLUDE_DIR - the ASIO SDK include directory
9 |
10 | if(WIN32)
11 | else(WIN32)
12 | message(FATAL_ERROR "FindASIOSDK.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" )
13 | endif(WIN32)
14 |
15 | file(GLOB results "${CMAKE_CURRENT_SOURCE_DIR}/../as*")
16 | foreach(f ${results})
17 | if(IS_DIRECTORY ${f})
18 | set(ASIOSDK_PATH_HINT ${ASIOSDK_PATH_HINT} ${f})
19 | endif()
20 | endforeach()
21 |
22 | find_path(ASIOSDK_ROOT_DIR
23 | common/asio.h
24 | HINTS
25 | ${ASIOSDK_PATH_HINT}
26 | )
27 |
28 | find_path(ASIOSDK_INCLUDE_DIR
29 | asio.h
30 | PATHS
31 | ${ASIOSDK_ROOT_DIR}/common
32 | )
33 |
34 | # handle the QUIETLY and REQUIRED arguments and set ASIOSDK_FOUND to TRUE if
35 | # all listed variables are TRUE
36 | INCLUDE(FindPackageHandleStandardArgs)
37 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR)
38 |
39 | MARK_AS_ADVANCED(
40 | ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR
41 | )
42 |
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio.la:
--------------------------------------------------------------------------------
1 | # libportaudio.la - a libtool library file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # The name that we can dlopen(3).
8 | dlname='libportaudio.2.dylib'
9 |
10 | # Names of this library.
11 | library_names='libportaudio.2.dylib libportaudio.dylib'
12 |
13 | # The name of the static archive.
14 | old_library='libportaudio.a'
15 |
16 | # Linker flags that can not go in dependency_libs.
17 | inherited_linker_flags=' -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon'
18 |
19 | # Libraries that this one depends upon.
20 | dependency_libs=''
21 |
22 | # Names of additional weak libraries provided by this library
23 | weak_library_names=''
24 |
25 | # Version information for libportaudio.
26 | current=2
27 | age=0
28 | revision=0
29 |
30 | # Is this an already installed library?
31 | installed=no
32 |
33 | # Should we warn about portability when linking against -modules?
34 | shouldnotlink=no
35 |
36 | # Files to dlopen/dlpreopen
37 | dlopen=''
38 | dlpreopen=''
39 |
40 | # Directory that this library needs to be installed in:
41 | libdir='/usr/local/lib'
42 |
--------------------------------------------------------------------------------
/portaudio/doc/src/srcguide.dox:
--------------------------------------------------------------------------------
1 | /*
2 | define all of the file groups used to structure the documentation.
3 | */
4 |
5 | /**
6 | @defgroup public_header Public API definitions for users of PortAudio
7 | */
8 |
9 | /**
10 | @internal
11 | @defgroup common_src Source code common to all implementations
12 | */
13 |
14 | /**
15 | @internal
16 | @defgroup win_src Source code common to all Windows implementations
17 | */
18 |
19 | /**
20 | @internal
21 | @defgroup unix_src Source code common to all Unix implementations
22 | */
23 |
24 | /**
25 | @internal
26 | @defgroup macosx_src Source code common to all Macintosh implementations
27 | */
28 |
29 | /**
30 | @internal
31 | @defgroup hostapi_src Source code for specific Host APIs
32 | */
33 |
34 | /**
35 | @internal
36 | @defgroup test_src Test programs
37 | */
38 |
39 | /**
40 | @defgroup examples_src Example programs demonstrating PortAudio usage
41 | */
42 |
43 | /**
44 | @internal
45 | @page srcguide A guide to the PortAudio sources
46 |
47 | - \ref public_header
48 | - \ref examples_src
49 | - \ref common_src
50 | - \ref win_src
51 | - \ref unix_src
52 | - \ref macosx_src
53 | - \ref hostapi_src
54 | - \ref test_src
55 | */
--------------------------------------------------------------------------------
/portaudio/lib/.libs/libportaudio.lai:
--------------------------------------------------------------------------------
1 | # libportaudio.la - a libtool library file
2 | # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
3 | #
4 | # Please DO NOT delete this file!
5 | # It is necessary for linking the library.
6 |
7 | # The name that we can dlopen(3).
8 | dlname='libportaudio.2.dylib'
9 |
10 | # Names of this library.
11 | library_names='libportaudio.2.dylib libportaudio.dylib'
12 |
13 | # The name of the static archive.
14 | old_library='libportaudio.a'
15 |
16 | # Linker flags that can not go in dependency_libs.
17 | inherited_linker_flags=' -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon'
18 |
19 | # Libraries that this one depends upon.
20 | dependency_libs=''
21 |
22 | # Names of additional weak libraries provided by this library
23 | weak_library_names=''
24 |
25 | # Version information for libportaudio.
26 | current=2
27 | age=0
28 | revision=0
29 |
30 | # Is this an already installed library?
31 | installed=yes
32 |
33 | # Should we warn about portability when linking against -modules?
34 | shouldnotlink=no
35 |
36 | # Files to dlopen/dlpreopen
37 | dlopen=''
38 | dlpreopen=''
39 |
40 | # Directory that this library needs to be installed in:
41 | libdir='/usr/local/lib'
42 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/CFunCallbackStream.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/CFunCallbackStream.hxx"
2 |
3 | #include "portaudiocpp/StreamParameters.hxx"
4 | #include "portaudiocpp/Exception.hxx"
5 |
6 | namespace portaudio
7 | {
8 | CFunCallbackStream::CFunCallbackStream()
9 | {
10 | }
11 |
12 | CFunCallbackStream::CFunCallbackStream(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData)
13 | {
14 | open(parameters, funPtr, userData);
15 | }
16 |
17 | CFunCallbackStream::~CFunCallbackStream()
18 | {
19 | try
20 | {
21 | close();
22 | }
23 | catch (...)
24 | {
25 | // ignore all errors
26 | }
27 | }
28 |
29 | // ---------------------------------------------------------------------------------==
30 |
31 | void CFunCallbackStream::open(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData)
32 | {
33 | PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
34 | parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), funPtr, userData);
35 |
36 | if (err != paNoError)
37 | {
38 | throw PaException(err);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/portaudio/build/scons/SConscript_common:
--------------------------------------------------------------------------------
1 | import os.path, sys
2 |
3 | class ConfigurationError(Exception):
4 | def __init__(self, reason):
5 | Exception.__init__(self, "Configuration failed: %s" % reason)
6 |
7 | env = Environment()
8 |
9 | # sunos, aix, hpux, irix, sunos appear to be platforms known by SCons, assuming they're POSIX compliant
10 | Posix = ("linux", "darwin", "sunos", "aix", "hpux", "irix", "sunos", "netbsd")
11 | Windows = ("win32", "cygwin")
12 |
13 | if env["PLATFORM"] == "posix":
14 | if sys.platform[:5] == "linux":
15 | Platform = "linux"
16 | elif sys.platform[:6] == "netbsd":
17 | Platform = "netbsd"
18 | else:
19 | raise ConfigurationError("Unknown platform %s" % sys.platform)
20 | else:
21 | if not env["PLATFORM"] in ("win32", "cygwin") + Posix:
22 | raise ConfigurationError("Unknown platform %s" % env["PLATFORM"])
23 | Platform = env["PLATFORM"]
24 |
25 | # Inspired by the versioning scheme followed by Qt, it seems sensible enough. There are three components: major, minor
26 | # and micro. Major changes with each subtraction from the API (backward-incompatible, i.e. V19 vs. V18), minor changes
27 | # with each addition to the API (backward-compatible), micro changes with each revision of the source code.
28 | ApiVer = "2.0.0"
29 |
30 | Export("Platform", "Posix", "ConfigurationError", "ApiVer")
31 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/c/build/vs2010/PortAudioJNI/PortAudioJNI.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PortAudioJNI", "PortAudioJNI.vcxproj", "{4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Win32 = Debug|Win32
9 | Debug|x64 = Debug|x64
10 | Release|Win32 = Release|Win32
11 | Release|x64 = Release|x64
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Debug|Win32.ActiveCfg = Debug|Win32
15 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Debug|Win32.Build.0 = Debug|Win32
16 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Debug|x64.ActiveCfg = Debug|x64
17 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Debug|x64.Build.0 = Debug|x64
18 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Release|Win32.ActiveCfg = Release|Win32
19 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Release|Win32.Build.0 = Release|Win32
20 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Release|x64.ActiveCfg = Release|x64
21 | {4024D885-39B0-4C8A-B3E7-BAB4BA08DFBB}.Release|x64.Build.0 = Release|x64
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/BlockingStream.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
2 | #define INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudiocpp/Stream.hxx"
7 |
8 | // ---------------------------------------------------------------------------------------
9 |
10 | namespace portaudio
11 | {
12 |
13 |
14 |
15 | //////
16 | /// @brief Stream class for blocking read/write-style input and output.
17 | //////
18 | class BlockingStream : public Stream
19 | {
20 | public:
21 | BlockingStream();
22 | BlockingStream(const StreamParameters ¶meters);
23 | ~BlockingStream();
24 |
25 | void open(const StreamParameters ¶meters);
26 |
27 | void read(void *buffer, unsigned long numFrames);
28 | void write(const void *buffer, unsigned long numFrames);
29 |
30 | signed long availableReadSize() const;
31 | signed long availableWriteSize() const;
32 |
33 | private:
34 | BlockingStream(const BlockingStream &); // non-copyable
35 | BlockingStream &operator=(const BlockingStream &); // non-copyable
36 | };
37 |
38 |
39 |
40 | } // portaudio
41 |
42 | // ---------------------------------------------------------------------------------------
43 |
44 | #endif // INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
45 |
46 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/InterfaceCallbackStream.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/InterfaceCallbackStream.hxx"
2 |
3 | #include "portaudiocpp/StreamParameters.hxx"
4 | #include "portaudiocpp/Exception.hxx"
5 | #include "portaudiocpp/CallbackInterface.hxx"
6 |
7 | namespace portaudio
8 | {
9 |
10 | // ---------------------------------------------------------------------------------==
11 |
12 | InterfaceCallbackStream::InterfaceCallbackStream()
13 | {
14 | }
15 |
16 | InterfaceCallbackStream::InterfaceCallbackStream(const StreamParameters ¶meters, CallbackInterface &instance)
17 | {
18 | open(parameters, instance);
19 | }
20 |
21 | InterfaceCallbackStream::~InterfaceCallbackStream()
22 | {
23 | try
24 | {
25 | close();
26 | }
27 | catch (...)
28 | {
29 | // ignore all errors
30 | }
31 | }
32 |
33 | // ---------------------------------------------------------------------------------==
34 |
35 | void InterfaceCallbackStream::open(const StreamParameters ¶meters, CallbackInterface &instance)
36 | {
37 | PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
38 | parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), &impl::callbackInterfaceToPaCallbackAdapter, static_cast(&instance));
39 |
40 | if (err != paNoError)
41 | {
42 | throw PaException(err);
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/doc/README:
--------------------------------------------------------------------------------
1 | GNU/Linux:
2 | ----------
3 |
4 | 1) Download and install a recent version of Doxygen (preferably version 1.3.3 or
5 | later). See http://www.doxygen.org/.
6 | 2) Download and install a recent version of GraphViz. See
7 | http://www.research.att.com/sw/tools/graphviz/.
8 | 3) Run ``doxygen config.doxy.linux'' in this directory or load and generate the file
9 | config.doxy.linux from the Doxywizard application. Or alternatively ``make docs'' can
10 | be run from the build/gnu folder.
11 |
12 | The generated html documentation will be placed in /doc/api_reference/. To open
13 | the main page of the documentation, open the file /doc/api_reference/index.html in
14 | an html browser.
15 |
16 |
17 | Windows:
18 | --------
19 |
20 | 1) Download and install a recent Doxygen (preferably version 1.3.4 or later). See
21 | http://www.doxygen.org/.
22 | 2) Download and install a recent version of GraphViz. See
23 | http://www.research.att.com/sw/tools/graphviz/.
24 | 3) If needed, edit the config.doxy file in an ascii text editor so that
25 | ``DOT_PATH'' variable points to the folder where GraphViz is installed.
26 | 4) Run ``doxygen config.doxy'' in this directory or load and generate the file
27 | config.doxy from the Doxywizard application.
28 |
29 | The generated html documentation will be placed in /doc/api_reference/. To open
30 | the main page of the documentation, open the file /doc/api_reference/index.html in
31 | an html browser.
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/portaudio/cmake_support/FindDXSDK.cmake:
--------------------------------------------------------------------------------
1 | # $Id: $
2 | #
3 | # - Try to find the DirectX SDK
4 | # Once done this will define
5 | #
6 | # DXSDK_FOUND - system has DirectX SDK
7 | # DXSDK_ROOT_DIR - path to the DirectX SDK base directory
8 | # DXSDK_INCLUDE_DIR - the DirectX SDK include directory
9 | # DXSDK_LIBRARY_DIR - DirectX SDK libraries path
10 | #
11 | # DXSDK_DSOUND_LIBRARY - Path to dsound.lib
12 | #
13 |
14 | if(WIN32)
15 | else(WIN32)
16 | message(FATAL_ERROR "FindDXSDK.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" )
17 | endif(WIN32)
18 |
19 | find_path(DXSDK_ROOT_DIR
20 | include/dxsdkver.h
21 | HINTS
22 | $ENV{DXSDK_DIR}
23 | )
24 |
25 | find_path(DXSDK_INCLUDE_DIR
26 | dxsdkver.h
27 | PATHS
28 | ${DXSDK_ROOT_DIR}/include
29 | )
30 |
31 | IF(CMAKE_CL_64)
32 | find_path(DXSDK_LIBRARY_DIR
33 | dsound.lib
34 | PATHS
35 | ${DXSDK_ROOT_DIR}/lib/x64
36 | )
37 | ELSE(CMAKE_CL_64)
38 | find_path(DXSDK_LIBRARY_DIR
39 | dsound.lib
40 | PATHS
41 | ${DXSDK_ROOT_DIR}/lib/x86
42 | )
43 | ENDIF(CMAKE_CL_64)
44 |
45 | find_library(DXSDK_DSOUND_LIBRARY
46 | dsound.lib
47 | PATHS
48 | ${DXSDK_LIBRARY_DIR}
49 | )
50 |
51 | # handle the QUIETLY and REQUIRED arguments and set DXSDK_FOUND to TRUE if
52 | # all listed variables are TRUE
53 | INCLUDE(FindPackageHandleStandardArgs)
54 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(DXSDK DEFAULT_MSG DXSDK_ROOT_DIR DXSDK_INCLUDE_DIR)
55 |
56 | MARK_AS_ADVANCED(
57 | DXSDK_ROOT_DIR DXSDK_INCLUDE_DIR
58 | DXSDK_LIBRARY_DIR DXSDK_DSOUND_LIBRARY
59 | )
60 |
--------------------------------------------------------------------------------
/gop/cerevoz.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | import sys
4 | import os
5 |
6 | # global ceredir
7 |
8 | ceredir = '/Users/cavaco/Work/MILLA/software/cerevoice_sdk_3.1.0_darwin_i386_python25_9536_academic'
9 |
10 | class Cerevoz:
11 | def __init__( self, utterance ):
12 | """Output an utterance spoken by our beloved Heather voice"""
13 | self.dryrun = False
14 | self.speak( utterance )
15 |
16 | def speak (self, utt):
17 |
18 | xmlFile = open ('utt.xml', 'w')
19 | xmlFile.write('\n')
20 | #xmlFile.write('\n')
21 | xmlFile.write(utt)
22 | #xmlFile.write('\n\n')
23 | xmlFile.close()
24 |
25 |
26 | exe = ceredir + '/examples/basictts/basictts'
27 | voice = ceredir + '/voices/cerevoice_heather_3.0.8_22k.voice'
28 | lic = ceredir + '/voices/cerevoice_heather_3.0.8_22k.license'
29 | os.system(exe + ' ' + voice + ' ' + lic + ' ./utt.xml')
30 |
31 | def usage( argv ):
32 | print 'Error: Too few arguments, no string for utterance was given!\n'
33 | print 'Usage: ' + argv[0] + ' \n\n'
34 | print ' Please try again!'
35 | sys.exit(1)
36 |
37 |
38 | def main( argv ):
39 | """Do something!"""
40 |
41 | if ( len(argv) < 2 ):
42 | usage( argv )
43 |
44 | utt = argv[1]
45 | # utt = 'I need toilet paper'
46 | print(utt)
47 | Cerevoz ( utt )
48 |
49 |
50 | if __name__ == '__main__':
51 | main ( sys.argv )
52 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/configure.ac:
--------------------------------------------------------------------------------
1 | #
2 | # PortAudioCpp V19 autoconf input file
3 | # Shamelessly ripped from the PortAudio one by Dominic Mazzoni
4 | # Ludwig Schwardt
5 | # Customized for automake by Mikael Magnusson
6 | #
7 |
8 | # Require autoconf >= 2.13
9 | AC_PREREQ(2.13)
10 |
11 | m4_define([lt_current], [0])
12 | m4_define([lt_revision], [12])
13 | m4_define([lt_age], [0])
14 |
15 | AC_INIT([PortAudioCpp], [12])
16 | AC_CONFIG_SRCDIR([include/portaudiocpp/PortAudioCpp.hxx])
17 | AM_INIT_AUTOMAKE
18 | AM_MAINTAINER_MODE
19 |
20 | ###### Top-level directory of pacpp
21 | ###### This makes it easy to shuffle the build directories
22 | ###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
23 | PACPP_ROOT="\$(top_srcdir)"
24 | PORTAUDIO_ROOT="../.."
25 |
26 | # Various other variables and flags
27 | DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
28 | CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
29 | CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
30 |
31 | LT_VERSION_INFO="lt_current:lt_revision:lt_age"
32 |
33 | # Checks for programs
34 |
35 | AC_PROG_CC
36 | AC_PROG_CXX
37 | AC_LIBTOOL_WIN32_DLL
38 | AC_PROG_LIBTOOL
39 |
40 | # Transfer these variables to the Makefile
41 | AC_SUBST(DEFAULT_INCLUDES)
42 | AC_SUBST(PORTAUDIO_ROOT)
43 | AC_SUBST(CXXFLAGS)
44 | AC_SUBST(LT_VERSION_INFO)
45 |
46 | AC_CONFIG_FILES([
47 | Makefile
48 | lib/Makefile
49 | include/Makefile
50 | bin/Makefile
51 | doc/Makefile
52 | portaudiocpp.pc
53 | ])
54 | AC_OUTPUT
55 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc7_1/devs_example.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 8.00
2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "devs_example", "devs_example.vcproj", "{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}"
3 | ProjectSection(ProjectDependencies) = postProject
4 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A} = {D18EA0C9-8C65-441D-884C-55EB43A84F2A}
5 | EndProjectSection
6 | EndProject
7 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static_library", "static_library.vcproj", "{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
8 | ProjectSection(ProjectDependencies) = postProject
9 | EndProjectSection
10 | EndProject
11 | Global
12 | GlobalSection(SolutionConfiguration) = preSolution
13 | Debug = Debug
14 | Release = Release
15 | EndGlobalSection
16 | GlobalSection(ProjectConfiguration) = postSolution
17 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.ActiveCfg = Debug|Win32
18 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.Build.0 = Debug|Win32
19 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.ActiveCfg = Release|Win32
20 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.Build.0 = Release|Win32
21 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.ActiveCfg = Debug|Win32
22 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.Build.0 = Debug|Win32
23 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.ActiveCfg = Release|Win32
24 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.Build.0 = Release|Win32
25 | EndGlobalSection
26 | GlobalSection(ExtensibilityGlobals) = postSolution
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityAddIns) = postSolution
29 | EndGlobalSection
30 | EndGlobal
31 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/vc7_1/sine_example.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 8.00
2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sine_example", "sine_example.vcproj", "{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}"
3 | ProjectSection(ProjectDependencies) = postProject
4 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A} = {D18EA0C9-8C65-441D-884C-55EB43A84F2A}
5 | EndProjectSection
6 | EndProject
7 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static_library", "static_library.vcproj", "{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
8 | ProjectSection(ProjectDependencies) = postProject
9 | EndProjectSection
10 | EndProject
11 | Global
12 | GlobalSection(SolutionConfiguration) = preSolution
13 | Debug = Debug
14 | Release = Release
15 | EndGlobalSection
16 | GlobalSection(ProjectConfiguration) = postSolution
17 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.ActiveCfg = Debug|Win32
18 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.Build.0 = Debug|Win32
19 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.ActiveCfg = Release|Win32
20 | {1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.Build.0 = Release|Win32
21 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.ActiveCfg = Debug|Win32
22 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.Build.0 = Debug|Win32
23 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.ActiveCfg = Release|Win32
24 | {D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.Build.0 = Release|Win32
25 | EndGlobalSection
26 | GlobalSection(ExtensibilityGlobals) = postSolution
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityAddIns) = postSolution
29 | EndGlobalSection
30 | EndGlobal
31 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/SystemDeviceIterator.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/SystemDeviceIterator.hxx"
2 |
3 | namespace portaudio
4 | {
5 | // -----------------------------------------------------------------------------------
6 |
7 | Device &System::DeviceIterator::operator*() const
8 | {
9 | return **ptr_;
10 | }
11 |
12 | Device *System::DeviceIterator::operator->() const
13 | {
14 | return &**this;
15 | }
16 |
17 | // -----------------------------------------------------------------------------------
18 |
19 | System::DeviceIterator &System::DeviceIterator::operator++()
20 | {
21 | ++ptr_;
22 | return *this;
23 | }
24 |
25 | System::DeviceIterator System::DeviceIterator::operator++(int)
26 | {
27 | System::DeviceIterator prev = *this;
28 | ++*this;
29 | return prev;
30 | }
31 |
32 | System::DeviceIterator &System::DeviceIterator::operator--()
33 | {
34 | --ptr_;
35 | return *this;
36 | }
37 |
38 | System::DeviceIterator System::DeviceIterator::operator--(int)
39 | {
40 | System::DeviceIterator prev = *this;
41 | --*this;
42 | return prev;
43 | }
44 |
45 | // -----------------------------------------------------------------------------------
46 |
47 | bool System::DeviceIterator::operator==(const System::DeviceIterator &rhs)
48 | {
49 | return (ptr_ == rhs.ptr_);
50 | }
51 |
52 | bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs)
53 | {
54 | return !(*this == rhs);
55 | }
56 |
57 | // -----------------------------------------------------------------------------------
58 | } // namespace portaudio
59 |
60 |
61 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/COPYING:
--------------------------------------------------------------------------------
1 | PortAudio Portable Real-Time Audio Library
2 | Copyright (c) 1999-2006 Ross Bencina and Phil Burk
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files
6 | (the "Software"), to deal in the Software without restriction,
7 | including without limitation the rights to use, copy, modify, merge,
8 | publish, distribute, sublicense, and/or sell copies of the Software,
9 | and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
19 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
23 |
24 | The text above constitutes the entire PortAudio license; however,
25 | the PortAudio community also makes the following non-binding requests:
26 |
27 | Any person wishing to distribute modifications to the Software is
28 | requested to send the modifications to the original developer so that
29 | they can be incorporated into the canonical version. It is also
30 | requested that these non-binding requests be included along with the
31 | license above.
32 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/SystemHostApiIterator.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/SystemHostApiIterator.hxx"
2 |
3 | namespace portaudio
4 | {
5 | // -----------------------------------------------------------------------------------
6 |
7 | HostApi &System::HostApiIterator::operator*() const
8 | {
9 | return **ptr_;
10 | }
11 |
12 | HostApi *System::HostApiIterator::operator->() const
13 | {
14 | return &**this;
15 | }
16 |
17 | // -----------------------------------------------------------------------------------
18 |
19 | System::HostApiIterator &System::HostApiIterator::operator++()
20 | {
21 | ++ptr_;
22 | return *this;
23 | }
24 |
25 | System::HostApiIterator System::HostApiIterator::operator++(int)
26 | {
27 | System::HostApiIterator prev = *this;
28 | ++*this;
29 | return prev;
30 | }
31 |
32 | System::HostApiIterator &System::HostApiIterator::operator--()
33 | {
34 | --ptr_;
35 | return *this;
36 | }
37 |
38 | System::HostApiIterator System::HostApiIterator::operator--(int)
39 | {
40 | System::HostApiIterator prev = *this;
41 | --*this;
42 | return prev;
43 | }
44 |
45 | // -----------------------------------------------------------------------------------
46 |
47 | bool System::HostApiIterator::operator==(const System::HostApiIterator &rhs)
48 | {
49 | return (ptr_ == rhs.ptr_);
50 | }
51 |
52 | bool System::HostApiIterator::operator!=(const System::HostApiIterator &rhs)
53 | {
54 | return !(*this == rhs);
55 | }
56 |
57 | // -----------------------------------------------------------------------------------
58 | } // namespace portaudio
59 |
60 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/InterfaceCallbackStream.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
2 | #define INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | #include "portaudiocpp/CallbackStream.hxx"
9 |
10 | // ---------------------------------------------------------------------------------------
11 |
12 | // Forward declaration(s)
13 | namespace portaudio
14 | {
15 | class StreamParameters;
16 | class CallbackInterface;
17 | }
18 |
19 | // ---------------------------------------------------------------------------------------
20 |
21 | // Declaration(s):
22 | namespace portaudio
23 | {
24 |
25 |
26 | //////
27 | /// @brief Callback stream using an instance of an object that's derived from the CallbackInterface
28 | /// interface.
29 | //////
30 | class InterfaceCallbackStream : public CallbackStream
31 | {
32 | public:
33 | InterfaceCallbackStream();
34 | InterfaceCallbackStream(const StreamParameters ¶meters, CallbackInterface &instance);
35 | ~InterfaceCallbackStream();
36 |
37 | void open(const StreamParameters ¶meters, CallbackInterface &instance);
38 |
39 | private:
40 | InterfaceCallbackStream(const InterfaceCallbackStream &); // non-copyable
41 | InterfaceCallbackStream &operator=(const InterfaceCallbackStream &); // non-copyable
42 | };
43 |
44 |
45 | } // portaudio
46 |
47 | // ---------------------------------------------------------------------------------------
48 |
49 | #endif // INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
50 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/CallbackInterface.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
2 | #define INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | // ---------------------------------------------------------------------------------------
9 |
10 | namespace portaudio
11 | {
12 | // -----------------------------------------------------------------------------------
13 |
14 | //////
15 | /// @brief Interface for an object that's callable as a PortAudioCpp callback object (ie that implements the
16 | /// paCallbackFun method).
17 | //////
18 | class CallbackInterface
19 | {
20 | public:
21 | virtual ~CallbackInterface() {}
22 |
23 | virtual int paCallbackFun(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
24 | const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags) = 0;
25 | };
26 |
27 | // -----------------------------------------------------------------------------------
28 |
29 | namespace impl
30 | {
31 | extern "C"
32 | {
33 | int callbackInterfaceToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
34 | const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags,
35 | void *userData);
36 | } // extern "C"
37 | }
38 |
39 | // -----------------------------------------------------------------------------------
40 |
41 | } // namespace portaudio
42 |
43 | // ---------------------------------------------------------------------------------------
44 |
45 | #endif // INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
46 |
--------------------------------------------------------------------------------
/portaudio/test/README.txt:
--------------------------------------------------------------------------------
1 | TODO - This should be moved into a doxydoc page.
2 |
3 | For more information on the TestPlan please visit:
4 |
5 | http://www.portaudio.com/trac/wiki/TestPlan
6 |
7 | This directory contains various programs to test PortAudio. The files
8 | named patest_* are tests.
9 |
10 | All following tests are up to date with the V19 API. They should all compile
11 | (without any warnings on GCC 3.3). Note that this does not necessarily mean that
12 | the tests pass, just that they compile.
13 |
14 | x- paqa_devs.c
15 | x- paqa_errs.c (needs reviewing)
16 | x- patest1.c
17 | x- patest_buffer.c
18 | x- patest_callbackstop.c
19 | x- patest_clip.c (last test fails, dither doesn't currently force clip in V19)
20 | x- patest_dither.c
21 | x- patest_hang.c
22 | x- patest_latency.c
23 | x- patest_leftright.c
24 | x- patest_longsine.c
25 | x- patest_many.c
26 | x- patest_maxsines.c
27 | x- patest_mono.c
28 | x- patest_multi_sine.c
29 | x- patest_pink.c
30 | x- patest_prime.c
31 | x- patest_read_record.c
32 | x- patest_record.c
33 | x- patest_ringmix.c
34 | x- patest_saw.c
35 | x- patest_sine.c
36 | x- patest_sine8.c
37 | x- patest_sine_formats.c
38 | x- patest_sine_time.c
39 | x- patest_start_stop.c
40 | x- patest_stop.c
41 | x- patest_sync.c
42 | x- patest_toomanysines.c
43 | x- patest_two_rates.c
44 | x- patest_underflow.c
45 | x- patest_wire.c
46 | x- patest_write_sine.c
47 | x- pa_devs.c
48 | x- pa_fuzz.c
49 | x- pa_minlat.c
50 |
51 | Note that Phil Burk deleted the debug_* tests on 2/26/11. They were just hacked
52 | versions of old V18 tests. If we need to debug then we can just hack a working V19 test.
53 |
--------------------------------------------------------------------------------
/portaudio/doc/src/license.dox:
--------------------------------------------------------------------------------
1 | /** @page License PortAudio License
2 |
3 | PortAudio Portable Real-Time Audio Library
4 | Copyright (c) 1999-2011 Ross Bencina, Phil Burk
5 |
6 |
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining
9 | a copy of this software and associated documentation files
10 | (the "Software"), to deal in the Software without restriction,
11 | including without limitation the rights to use, copy, modify, merge,
12 | publish, distribute, sublicense, and/or sell copies of the Software,
13 | and to permit persons to whom the Software is furnished to do so,
14 | subject to the following conditions:
15 |
16 | The above copyright notice and this permission notice shall be
17 | included in all copies or substantial portions of the Software.
18 |
19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 |
27 |
28 |
29 | The text above constitutes the entire PortAudio license; however,
30 | the PortAudio community also makes the following non-binding requests:
31 |
32 | Any person wishing to distribute modifications to the Software is
33 | requested to send the modifications to the original developer so that
34 | they can be incorporated into the canonical version. It is also
35 | requested that these non-binding requests be included along with the
36 | license above.
37 |
38 | */
--------------------------------------------------------------------------------
/EN_p2fa_16000/networkTMP.htk:
--------------------------------------------------------------------------------
1 | VERSION=1.0
2 | N=26 L=32
3 | I=0 W=!NULL
4 | I=1 W=!NULL
5 | I=2 W=SENT-START
6 | I=3 W=sil
7 | I=4 W=HH
8 | I=5 W=ER0
9 | I=6 W=sp
10 | I=7 W=AY1
11 | I=8 W=Z
12 | I=9 W=!NULL
13 | I=10 W=S
14 | I=11 W=sp
15 | I=12 W=AA1
16 | I=13 W=R
17 | I=14 W=sp
18 | I=15 W=AY1
19 | I=16 W=S
20 | I=17 W=!NULL
21 | I=18 W=Z
22 | I=19 W=sp
23 | I=20 W=B
24 | I=21 W=L
25 | I=22 W=UW1
26 | I=23 W=sp
27 | I=24 W=sil
28 | I=25 W=SENT-END
29 | J=0 S=25 E=1
30 | J=1 S=0 E=2
31 | J=2 S=2 E=3
32 | J=3 S=24 E=3
33 | J=4 S=3 E=4
34 | J=5 S=4 E=5
35 | J=6 S=5 E=6
36 | J=7 S=6 E=7
37 | J=8 S=7 E=8
38 | J=9 S=9 E=8
39 | J=10 S=8 E=9
40 | J=11 S=10 E=9
41 | J=12 S=7 E=10
42 | J=13 S=9 E=10
43 | J=14 S=9 E=11
44 | J=15 S=11 E=12
45 | J=16 S=12 E=13
46 | J=17 S=13 E=14
47 | J=18 S=14 E=15
48 | J=19 S=15 E=16
49 | J=20 S=17 E=16
50 | J=21 S=16 E=17
51 | J=22 S=18 E=17
52 | J=23 S=15 E=18
53 | J=24 S=17 E=18
54 | J=25 S=17 E=19
55 | J=26 S=19 E=20
56 | J=27 S=20 E=21
57 | J=28 S=21 E=22
58 | J=29 S=22 E=23
59 | J=30 S=23 E=24
60 | J=31 S=24 E=25
61 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/CFunCallbackStream.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_CFUNCALLBACKSTREAM_HXX
2 | #define INCLUDED_PORTAUDIO_CFUNCALLBACKSTREAM_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | #include "portaudiocpp/CallbackStream.hxx"
9 |
10 | // ---------------------------------------------------------------------------------------
11 |
12 | // Forward declaration(s)
13 | namespace portaudio
14 | {
15 | class StreamParameters;
16 | }
17 |
18 | // ---------------------------------------------------------------------------------------
19 |
20 | // Declaration(s):
21 | namespace portaudio
22 | {
23 | // -----------------------------------------------------------------------------------
24 |
25 | //////
26 | /// @brief Callback stream using a free function with C linkage. It's important that the function
27 | /// the passed function pointer points to is declared ``extern "C"''.
28 | //////
29 | class CFunCallbackStream : public CallbackStream
30 | {
31 | public:
32 | CFunCallbackStream();
33 | CFunCallbackStream(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData);
34 | ~CFunCallbackStream();
35 |
36 | void open(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData);
37 |
38 | private:
39 | CFunCallbackStream(const CFunCallbackStream &); // non-copyable
40 | CFunCallbackStream &operator=(const CFunCallbackStream &); // non-copyable
41 | };
42 |
43 | // -----------------------------------------------------------------------------------
44 | } // portaudio
45 |
46 | // ---------------------------------------------------------------------------------------
47 |
48 | #endif // INCLUDED_PORTAUDIO_MEMFUNCALLBACKSTREAM_HXX
49 |
50 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/SystemHostApiIterator.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_SYSTEMHOSTAPIITERATOR_HXX
2 | #define INCLUDED_PORTAUDIO_SYSTEMHOSTAPIITERATOR_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include
7 | #include
8 |
9 | #include "portaudiocpp/System.hxx"
10 |
11 | // ---------------------------------------------------------------------------------------
12 |
13 | // Forward declaration(s):
14 | namespace portaudio
15 | {
16 | class HostApi;
17 | }
18 |
19 | // ---------------------------------------------------------------------------------------
20 |
21 | // Declaration(s):
22 | namespace portaudio
23 | {
24 |
25 |
26 | //////
27 | /// @brief Iterator class for iterating through all HostApis in a System.
28 | ///
29 | /// Compliant with the STL bidirectional iterator concept.
30 | //////
31 | class System::HostApiIterator
32 | {
33 | public:
34 | typedef std::bidirectional_iterator_tag iterator_category;
35 | typedef Device value_type;
36 | typedef ptrdiff_t difference_type;
37 | typedef HostApi * pointer;
38 | typedef HostApi & reference;
39 |
40 | HostApi &operator*() const;
41 | HostApi *operator->() const;
42 |
43 | HostApiIterator &operator++();
44 | HostApiIterator operator++(int);
45 | HostApiIterator &operator--();
46 | HostApiIterator operator--(int);
47 |
48 | bool operator==(const HostApiIterator &rhs);
49 | bool operator!=(const HostApiIterator &rhs);
50 |
51 | private:
52 | friend class System;
53 | HostApi **ptr_;
54 | };
55 |
56 |
57 | } // namespace portaudio
58 |
59 | // ---------------------------------------------------------------------------------------
60 |
61 | #endif // INCLUDED_PORTAUDIO_SYSTEMHOSTAPIITERATOR_HXX
62 |
--------------------------------------------------------------------------------
/portaudio/build/msvc/portaudio.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 9.00
3 | # Visual Studio 2005
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "portaudio", "portaudio.vcproj", "{0A18A071-125E-442F-AFF7-A3F68ABECF99}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Win32 = Debug|Win32
9 | Debug|x64 = Debug|x64
10 | Release|Win32 = Release|Win32
11 | Release|x64 = Release|x64
12 | ReleaseMinDependency|Win32 = ReleaseMinDependency|Win32
13 | ReleaseMinDependency|x64 = ReleaseMinDependency|x64
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Debug|Win32.ActiveCfg = Debug|Win32
17 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Debug|Win32.Build.0 = Debug|Win32
18 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Debug|x64.ActiveCfg = Debug|x64
19 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Debug|x64.Build.0 = Debug|x64
20 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Release|Win32.ActiveCfg = Release|Win32
21 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Release|Win32.Build.0 = Release|Win32
22 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Release|x64.ActiveCfg = Release|x64
23 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.Release|x64.Build.0 = Release|x64
24 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.ReleaseMinDependency|Win32.ActiveCfg = ReleaseMinDependency|Win32
25 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.ReleaseMinDependency|Win32.Build.0 = ReleaseMinDependency|Win32
26 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.ReleaseMinDependency|x64.ActiveCfg = ReleaseMinDependency|x64
27 | {0A18A071-125E-442F-AFF7-A3F68ABECF99}.ReleaseMinDependency|x64.Build.0 = ReleaseMinDependency|x64
28 | EndGlobalSection
29 | GlobalSection(SolutionProperties) = preSolution
30 | HideSolutionNode = FALSE
31 | EndGlobalSection
32 | EndGlobal
33 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/AutoSystem.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_AUTOSYSTEM_HXX
2 | #define INCLUDED_PORTAUDIO_AUTOSYSTEM_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudiocpp/System.hxx"
7 |
8 | // ---------------------------------------------------------------------------------------
9 |
10 | namespace portaudio
11 | {
12 |
13 |
14 | //////
15 | /// @brief A RAII idiom class to ensure automatic clean-up when an exception is
16 | /// raised.
17 | ///
18 | /// A simple helper class which uses the 'Resource Acquisition is Initialization'
19 | /// idiom (RAII). Use this class to initialize/terminate the System rather than
20 | /// using System directly. AutoSystem must be created on stack and must be valid
21 | /// throughout the time you wish to use PortAudioCpp. Your 'main' function might be
22 | /// a good place for it.
23 | ///
24 | /// To avoid having to type portaudio::System::instance().xyz() all the time, it's usually
25 | /// a good idea to make a reference to the System which can be accessed directly.
26 | /// @verbatim
27 | /// portaudio::AutoSys autoSys;
28 | /// portaudio::System &sys = portaudio::System::instance();
29 | /// @endverbatim
30 | //////
31 | class AutoSystem
32 | {
33 | public:
34 | AutoSystem(bool initialize = true)
35 | {
36 | if (initialize)
37 | System::initialize();
38 | }
39 |
40 | ~AutoSystem()
41 | {
42 | if (System::exists())
43 | System::terminate();
44 | }
45 |
46 | void initialize()
47 | {
48 | System::initialize();
49 | }
50 |
51 | void terminate()
52 | {
53 | System::terminate();
54 | }
55 | };
56 |
57 |
58 | } // namespace portaudio
59 |
60 | // ---------------------------------------------------------------------------------------
61 |
62 | #endif // INCLUDED_PORTAUDIO_AUTOSYSTEM_HXX
63 |
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/compile_windows_mingw.dox:
--------------------------------------------------------------------------------
1 | /** @page compile_windows_mingw Building Portaudio for Windows with MinGW
2 | @ingroup tutorial
3 |
4 | @section comp_mingw1 Portaudio for Windows With MinGW
5 |
6 | The following document is still being reviewed
7 |
8 | = MinGW/MSYS =
9 |
10 | From the [http://www.mingw.org MinGW projectpage]:
11 |
12 | MinGW: A collection of freely available and freely distributable
13 | Windows specific header files and import libraries, augmenting
14 | the GNU Compiler Collection, (GCC), and its associated
15 | tools, (GNU binutils). MinGW provides a complete Open Source
16 | programming tool set which is suitable for the development of
17 | native Windows programs that do not depend on any 3rd-party C
18 | runtime DLLs.
19 |
20 | MSYS: A Minimal SYStem providing a POSIX compatible Bourne shell
21 | environment, with a small collection of UNIX command line
22 | tools. Primarily developed as a means to execute the configure
23 | scripts and Makefiles used to build Open Source software, but
24 | also useful as a general purpose command line interface to
25 | replace Windows cmd.exe.
26 |
27 | MinGW provides a compiler/linker toolchain while MSYS is required
28 | to actually run the PortAudio configure script.
29 |
30 | Once MinGW and MSYS are installed (see the [http://www.mingw.org/MinGWiki MinGW-Wiki]) open an MSYS shell and run the famous:
31 |
32 | @code
33 | ./configure
34 | make
35 | make install
36 | @endcode
37 |
38 | The above should create a working version though you might want to
39 | provide '--prefix=' to configure.
40 |
41 | './configure --help' gives details as to what can be tinkered with.
42 |
43 | --- Mikael Magnusson
44 |
45 | To update your copy or check out a fresh copy of the source
46 |
47 | [wiki:UsingThePortAudioSvnRepository SVN instructions]
48 |
49 | --- Bob !McGwier
50 |
51 | Back to the Tutorial: \ref tutorial_start
52 |
53 | */
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/compile_cmake.dox:
--------------------------------------------------------------------------------
1 | /** @page compile_cmake Creating MSVC Build Files via CMake
2 | @ingroup tutorial
3 |
4 | This is a simple "How-to" for creating build files for Microsoft Visual C++ via CMake and the CMakeLists.txt file
5 |
6 | 1. Install CMake if you haven't got it already ([http://www.cmake.org], minimum version required is 2.8).
7 |
8 | 2. If you want ASIO support you need to D/L the ASIO2 SDK from Steinberg, and place it according to \ref compile_windows_asio_msvc
9 |
10 | 3. Run the CMake GUI application and browse to source files directory and build directory:
11 | a. The source files directory ("Where is the source code") is where the portaudio CMakeLists.txt file is located.
12 | b. The build directory ("Where to build the binaries") is pretty much anywhere you like. A common practice though is to have the build directory located outside the
13 | source files tree (a so called "out-of-source build")
14 |
15 | 4. Click Configure. This will prompt you to select which build files to generate. Note Only Microsoft Visual C++ build files currently supported!
16 |
17 | 5. In the CMake option list, enable the PORTAUDIO_xxx options you need, then click Configure again (Note that after this there are no options marked with red color)
18 |
19 | 6. Click Generate and you'll now (hopefully) have your VS build files in your previously defined build directory.
20 |
21 | Both ASIO and DirectX SDK are automatically searched for by the CMake script, so if you have DirectX SDK installed and have placed the ASIO2 SDK according to point 2 above, you should be able to build portaudio with !DirectSound and ASIO support.
22 |
23 | Should you later on decide to change a portaudio option, just jump in at step 5 above (MSVC will then prompt you to reload projects/solutions/workspace)
24 |
25 | --- Robert Bielik
26 |
27 | Back to the Tutorial: \ref tutorial_start
28 |
29 | */
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/SystemDeviceIterator.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_SYSTEMDEVICEITERATOR_HXX
2 | #define INCLUDED_PORTAUDIO_SYSTEMDEVICEITERATOR_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include
7 | #include
8 |
9 | #include "portaudiocpp/System.hxx"
10 |
11 | // ---------------------------------------------------------------------------------------
12 |
13 | // Forward declaration(s):
14 | namespace portaudio
15 | {
16 | class Device;
17 | class HostApi;
18 | }
19 |
20 | // ---------------------------------------------------------------------------------------
21 |
22 | // Declaration(s):
23 | namespace portaudio
24 | {
25 |
26 |
27 | //////
28 | /// @brief Iterator class for iterating through all Devices in a System.
29 | ///
30 | /// Devices will be iterated by iterating all Devices in each
31 | /// HostApi in the System. Compliant with the STL bidirectional
32 | /// iterator concept.
33 | //////
34 | class System::DeviceIterator
35 | {
36 | public:
37 | typedef std::bidirectional_iterator_tag iterator_category;
38 | typedef Device value_type;
39 | typedef ptrdiff_t difference_type;
40 | typedef Device * pointer;
41 | typedef Device & reference;
42 |
43 | Device &operator*() const;
44 | Device *operator->() const;
45 |
46 | DeviceIterator &operator++();
47 | DeviceIterator operator++(int);
48 | DeviceIterator &operator--();
49 | DeviceIterator operator--(int);
50 |
51 | bool operator==(const DeviceIterator &rhs);
52 | bool operator!=(const DeviceIterator &rhs);
53 |
54 | private:
55 | friend class System;
56 | friend class HostApi;
57 | Device **ptr_;
58 | };
59 |
60 |
61 | } // namespace portaudio
62 |
63 | // ---------------------------------------------------------------------------------------
64 |
65 | #endif // INCLUDED_PORTAUDIO_SYSTEMDEVICEITERATOR_HXX
66 |
67 |
--------------------------------------------------------------------------------
/portaudio/qa/loopback/src/test_audio_analyzer.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * PortAudio Portable Real-Time Audio Library
4 | * Latest Version at: http://www.portaudio.com
5 | *
6 | * Copyright (c) 1999-2010 Phil Burk and Ross Bencina
7 | *
8 | * Permission is hereby granted, free of charge, to any person obtaining
9 | * a copy of this software and associated documentation files
10 | * (the "Software"), to deal in the Software without restriction,
11 | * including without limitation the rights to use, copy, modify, merge,
12 | * publish, distribute, sublicense, and/or sell copies of the Software,
13 | * and to permit persons to whom the Software is furnished to do so,
14 | * subject to the following conditions:
15 | *
16 | * The above copyright notice and this permission notice shall be
17 | * included in all copies or substantial portions of the Software.
18 | *
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | /*
29 | * The text above constitutes the entire PortAudio license; however,
30 | * the PortAudio community also makes the following non-binding requests:
31 | *
32 | * Any person wishing to distribute modifications to the Software is
33 | * requested to send the modifications to the original developer so that
34 | * they can be incorporated into the canonical version. It is also
35 | * requested that these non-binding requests be included along with the
36 | * license above.
37 | */
38 |
39 | #ifndef _TEST_AUDIO_ANALYZER_H
40 | #define _TEST_AUDIO_ANALYZER_H
41 |
42 | /** Test the audio analyzer by itself without any PortAudio calls. */
43 | int PaQa_TestAnalyzer( void );
44 |
45 |
46 | #endif /* _TEST_AUDIO_ANALYZER_H */
47 |
--------------------------------------------------------------------------------
/portaudio/build/msvc/portaudio.def:
--------------------------------------------------------------------------------
1 | EXPORTS
2 |
3 | ;
4 | Pa_GetVersion @1
5 | Pa_GetVersionText @2
6 | Pa_GetErrorText @3
7 | Pa_Initialize @4
8 | Pa_Terminate @5
9 | Pa_GetHostApiCount @6
10 | Pa_GetDefaultHostApi @7
11 | Pa_GetHostApiInfo @8
12 | Pa_HostApiTypeIdToHostApiIndex @9
13 | Pa_HostApiDeviceIndexToDeviceIndex @10
14 | Pa_GetLastHostErrorInfo @11
15 | Pa_GetDeviceCount @12
16 | Pa_GetDefaultInputDevice @13
17 | Pa_GetDefaultOutputDevice @14
18 | Pa_GetDeviceInfo @15
19 | Pa_IsFormatSupported @16
20 | Pa_OpenStream @17
21 | Pa_OpenDefaultStream @18
22 | Pa_CloseStream @19
23 | Pa_SetStreamFinishedCallback @20
24 | Pa_StartStream @21
25 | Pa_StopStream @22
26 | Pa_AbortStream @23
27 | Pa_IsStreamStopped @24
28 | Pa_IsStreamActive @25
29 | Pa_GetStreamInfo @26
30 | Pa_GetStreamTime @27
31 | Pa_GetStreamCpuLoad @28
32 | Pa_ReadStream @29
33 | Pa_WriteStream @30
34 | Pa_GetStreamReadAvailable @31
35 | Pa_GetStreamWriteAvailable @32
36 | Pa_GetSampleSize @33
37 | Pa_Sleep @34
38 | PaAsio_GetAvailableBufferSizes @50
39 | PaAsio_ShowControlPanel @51
40 | PaUtil_InitializeX86PlainConverters @52
41 | PaAsio_GetInputChannelName @53
42 | PaAsio_GetOutputChannelName @54
43 | PaUtil_SetDebugPrintFunction @55
44 | PaWasapi_GetDeviceDefaultFormat @56
45 | PaWasapi_GetDeviceRole @57
46 | PaWasapi_ThreadPriorityBoost @58
47 | PaWasapi_ThreadPriorityRevert @59
48 | PaWasapi_GetFramesPerHostBuffer @60
49 | PaWasapi_GetJackDescription @61
50 | PaWasapi_GetJackCount @62
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/AsioDeviceAdapter.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/AsioDeviceAdapter.hxx"
2 |
3 | #include "portaudio.h"
4 | #include "pa_asio.h"
5 |
6 | #include "portaudiocpp/Device.hxx"
7 | #include "portaudiocpp/HostApi.hxx"
8 | #include "portaudiocpp/Exception.hxx"
9 |
10 | namespace portaudio
11 | {
12 | AsioDeviceAdapter::AsioDeviceAdapter(Device &device)
13 | {
14 | if (device.hostApi().typeId() != paASIO)
15 | throw PaCppException(PaCppException::UNABLE_TO_ADAPT_DEVICE);
16 |
17 | device_ = &device;
18 |
19 | PaError err = PaAsio_GetAvailableLatencyValues(device_->index(), &minBufferSize_, &maxBufferSize_,
20 | &preferredBufferSize_, &granularity_);
21 |
22 | if (err != paNoError)
23 | throw PaException(err);
24 |
25 | }
26 |
27 | Device &AsioDeviceAdapter::device()
28 | {
29 | return *device_;
30 | }
31 |
32 | long AsioDeviceAdapter::minBufferSize() const
33 | {
34 | return minBufferSize_;
35 | }
36 |
37 | long AsioDeviceAdapter::maxBufferSize() const
38 | {
39 | return maxBufferSize_;
40 | }
41 |
42 | long AsioDeviceAdapter::preferredBufferSize() const
43 | {
44 | return preferredBufferSize_;
45 | }
46 |
47 | long AsioDeviceAdapter::granularity() const
48 | {
49 | return granularity_;
50 | }
51 |
52 | void AsioDeviceAdapter::showControlPanel(void *systemSpecific)
53 | {
54 | PaError err = PaAsio_ShowControlPanel(device_->index(), systemSpecific);
55 |
56 | if (err != paNoError)
57 | throw PaException(err);
58 | }
59 |
60 | const char *AsioDeviceAdapter::inputChannelName(int channelIndex) const
61 | {
62 | const char *channelName;
63 | PaError err = PaAsio_GetInputChannelName(device_->index(), channelIndex, &channelName);
64 |
65 | if (err != paNoError)
66 | throw PaException(err);
67 |
68 | return channelName;
69 | }
70 |
71 | const char *AsioDeviceAdapter::outputChannelName(int channelIndex) const
72 | {
73 | const char *channelName;
74 | PaError err = PaAsio_GetOutputChannelName(device_->index(), channelIndex, &channelName);
75 |
76 | if (err != paNoError)
77 | throw PaException(err);
78 |
79 | return channelName;
80 | }
81 | }
82 |
83 |
84 |
--------------------------------------------------------------------------------
/portaudio/pablio/README.txt:
--------------------------------------------------------------------------------
1 | README for PABLIO
2 | Portable Audio Blocking I/O Library
3 | Author: Phil Burk
4 |
5 | PABLIO is a simplified interface to PortAudio that provides
6 | read/write style blocking I/O.
7 |
8 | PABLIO is DEPRECATED. We recommend that people use the blocking I/O calls
9 | that are now part of the PortAudio API. These are Pa_ReadStream() and
10 | Pa_WriteStream().
11 |
12 | http://portaudio.com/docs/v19-doxydocs/blocking_read_write.html
13 |
14 | /*
15 | * More information on PortAudio at: http://www.portaudio.com
16 | * Copyright (c) 1999-2000 Phil Burk
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining
19 | * a copy of this software and associated documentation files
20 | * (the "Software"), to deal in the Software without restriction,
21 | * including without limitation the rights to use, copy, modify, merge,
22 | * publish, distribute, sublicense, and/or sell copies of the Software,
23 | * and to permit persons to whom the Software is furnished to do so,
24 | * subject to the following conditions:
25 | *
26 | * The above copyright notice and this permission notice shall be
27 | * included in all copies or substantial portions of the Software.
28 | *
29 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
33 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
34 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
35 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36 | */
37 |
38 | /*
39 | * The text above constitutes the entire PortAudio license; however,
40 | * the PortAudio community also makes the following non-binding requests:
41 | *
42 | * Any person wishing to distribute modifications to the Software is
43 | * requested to send the modifications to the original developer so that
44 | * they can be incorporated into the canonical version. It is also
45 | * requested that these non-binding requests be included along with the
46 | * license above.
47 | */
48 |
49 |
50 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/HostApi.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_HOSTAPI_HXX
2 | #define INCLUDED_PORTAUDIO_HOSTAPI_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | #include "portaudiocpp/System.hxx"
9 |
10 | // ---------------------------------------------------------------------------------------
11 |
12 | // Forward declaration(s):
13 | namespace portaudio
14 | {
15 | class Device;
16 | }
17 |
18 | // ---------------------------------------------------------------------------------------
19 |
20 | // Declaration(s):
21 | namespace portaudio
22 | {
23 |
24 |
25 | //////
26 | /// @brief HostApi represents a host API (usually type of driver) in the System.
27 | ///
28 | /// A single System can support multiple HostApi's each one typically having
29 | /// a set of Devices using that HostApi (usually driver type). All Devices in
30 | /// the HostApi can be enumerated and the default input/output Device for this
31 | /// HostApi can be retreived.
32 | //////
33 | class HostApi
34 | {
35 | public:
36 | typedef System::DeviceIterator DeviceIterator;
37 |
38 | // query info: id, name, numDevices
39 | PaHostApiTypeId typeId() const;
40 | PaHostApiIndex index() const;
41 | const char *name() const;
42 | int deviceCount() const;
43 |
44 | // iterate devices
45 | DeviceIterator devicesBegin();
46 | DeviceIterator devicesEnd();
47 |
48 | // default devices
49 | Device &defaultInputDevice() const;
50 | Device &defaultOutputDevice() const;
51 |
52 | // comparison operators
53 | bool operator==(const HostApi &rhs) const;
54 | bool operator!=(const HostApi &rhs) const;
55 |
56 | private:
57 | const PaHostApiInfo *info_;
58 | Device **devices_;
59 |
60 | private:
61 | friend class System;
62 |
63 | explicit HostApi(PaHostApiIndex index);
64 | ~HostApi();
65 |
66 | HostApi(const HostApi &); // non-copyable
67 | HostApi &operator=(const HostApi &); // non-copyable
68 | };
69 |
70 |
71 | }
72 |
73 | // ---------------------------------------------------------------------------------------
74 |
75 | #endif // INCLUDED_PORTAUDIO_HOSTAPI_HXX
76 |
77 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/build/gnu/aclocal.m4:
--------------------------------------------------------------------------------
1 |
2 | dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
3 | dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
4 | dnl also defines GSTUFF_PKG_ERRORS on error
5 | AC_DEFUN(PKG_CHECK_MODULES, [
6 | succeeded=no
7 |
8 | if test -z "$PKG_CONFIG"; then
9 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
10 | fi
11 |
12 | if test "$PKG_CONFIG" = "no" ; then
13 | echo "*** The pkg-config script could not be found. Make sure it is"
14 | echo "*** in your path, or set the PKG_CONFIG environment variable"
15 | echo "*** to the full path to pkg-config."
16 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17 | else
18 | PKG_CONFIG_MIN_VERSION=0.9.0
19 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20 | AC_MSG_CHECKING(for $2)
21 |
22 | if $PKG_CONFIG --exists "$2" ; then
23 | AC_MSG_RESULT(yes)
24 | succeeded=yes
25 |
26 | AC_MSG_CHECKING($1_CFLAGS)
27 | $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
28 | AC_MSG_RESULT($$1_CFLAGS)
29 |
30 | AC_MSG_CHECKING($1_LIBS)
31 | $1_LIBS=`$PKG_CONFIG --libs "$2"`
32 | AC_MSG_RESULT($$1_LIBS)
33 | else
34 | $1_CFLAGS=""
35 | $1_LIBS=""
36 | ## If we have a custom action on failure, don't print errors, but
37 | ## do set a variable so people can do so.
38 | $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
39 | ifelse([$4], ,echo $$1_PKG_ERRORS,)
40 | fi
41 |
42 | AC_SUBST($1_CFLAGS)
43 | AC_SUBST($1_LIBS)
44 | else
45 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
46 | echo "*** See http://www.freedesktop.org/software/pkgconfig"
47 | fi
48 | fi
49 |
50 | if test $succeeded = yes; then
51 | ifelse([$3], , :, [$3])
52 | else
53 | ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
54 | fi
55 | ])
56 |
57 |
58 |
--------------------------------------------------------------------------------
/portaudio/qa/loopback/src/paqa_tools.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * PortAudio Portable Real-Time Audio Library
4 | * Latest Version at: http://www.portaudio.com
5 | *
6 | * Copyright (c) 1999-2010 Phil Burk and Ross Bencina
7 | *
8 | * Permission is hereby granted, free of charge, to any person obtaining
9 | * a copy of this software and associated documentation files
10 | * (the "Software"), to deal in the Software without restriction,
11 | * including without limitation the rights to use, copy, modify, merge,
12 | * publish, distribute, sublicense, and/or sell copies of the Software,
13 | * and to permit persons to whom the Software is furnished to do so,
14 | * subject to the following conditions:
15 | *
16 | * The above copyright notice and this permission notice shall be
17 | * included in all copies or substantial portions of the Software.
18 | *
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | /*
29 | * The text above constitutes the entire PortAudio license; however,
30 | * the PortAudio community also makes the following non-binding requests:
31 | *
32 | * Any person wishing to distribute modifications to the Software is
33 | * requested to send the modifications to the original developer so that
34 | * they can be incorporated into the canonical version. It is also
35 | * requested that these non-binding requests be included along with the
36 | * license above.
37 | */
38 |
39 | #ifndef _PAQA_TOOLS_H
40 | #define _PAQA_TOOLS_H
41 |
42 |
43 | #include
44 | #include "portaudio.h"
45 |
46 | void PaQa_ListAudioDevices(void);
47 |
48 | void PaQa_ConvertToFloat( const void *input, int numSamples, PaSampleFormat inFormat, float *output );
49 |
50 | void PaQa_ConvertFromFloat( const float *input, int numSamples, PaSampleFormat outFormat, void *output );
51 |
52 | #endif /* _PAQA_TOOLS_H */
53 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/src/com/portaudio/StreamInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Portable Audio I/O Library
3 | * Java Binding for PortAudio
4 | *
5 | * Based on the Open Source API proposed by Ross Bencina
6 | * Copyright (c) 2008 Ross Bencina
7 | *
8 | * Permission is hereby granted, free of charge, to any person obtaining
9 | * a copy of this software and associated documentation files
10 | * (the "Software"), to deal in the Software without restriction,
11 | * including without limitation the rights to use, copy, modify, merge,
12 | * publish, distribute, sublicense, and/or sell copies of the Software,
13 | * and to permit persons to whom the Software is furnished to do so,
14 | * subject to the following conditions:
15 | *
16 | * The above copyright notice and this permission notice shall be
17 | * included in all copies or substantial portions of the Software.
18 | *
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | /*
29 | * The text above constitutes the entire PortAudio license; however,
30 | * the PortAudio community also makes the following non-binding requests:
31 | *
32 | * Any person wishing to distribute modifications to the Software is
33 | * requested to send the modifications to the original developer so that
34 | * they can be incorporated into the canonical version. It is also
35 | * requested that these non-binding requests be included along with the
36 | * license above.
37 | */
38 |
39 |
40 | /** @file
41 | @ingroup bindings_java
42 |
43 | @brief Information about a JPortAudio Stream.
44 | */
45 |
46 | package com.portaudio;
47 |
48 | /**
49 | * Equivalent to PaStreamInfo
50 | * @see PortAudio
51 | * @author Phil Burk
52 | *
53 | */
54 | public class StreamInfo
55 | {
56 | public int structVersion;
57 | public double outputLatency;
58 | public double inputLatency;
59 | public double sampleRate;
60 | }
61 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/src/com/portaudio/StreamParameters.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Portable Audio I/O Library
3 | * Java Binding for PortAudio
4 | *
5 | * Based on the Open Source API proposed by Ross Bencina
6 | * Copyright (c) 2008 Ross Bencina
7 | *
8 | * Permission is hereby granted, free of charge, to any person obtaining
9 | * a copy of this software and associated documentation files
10 | * (the "Software"), to deal in the Software without restriction,
11 | * including without limitation the rights to use, copy, modify, merge,
12 | * publish, distribute, sublicense, and/or sell copies of the Software,
13 | * and to permit persons to whom the Software is furnished to do so,
14 | * subject to the following conditions:
15 | *
16 | * The above copyright notice and this permission notice shall be
17 | * included in all copies or substantial portions of the Software.
18 | *
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | /*
29 | * The text above constitutes the entire PortAudio license; however,
30 | * the PortAudio community also makes the following non-binding requests:
31 | *
32 | * Any person wishing to distribute modifications to the Software is
33 | * requested to send the modifications to the original developer so that
34 | * they can be incorporated into the canonical version. It is also
35 | * requested that these non-binding requests be included along with the
36 | * license above.
37 | */
38 |
39 | /** @file
40 | @ingroup bindings_java
41 |
42 | @brief Options to use when opening a stream.
43 | */
44 | package com.portaudio;
45 | /**
46 | * Equivalent to PaStreamParameters
47 | * @see PortAudio
48 | * @author Phil Burk
49 | *
50 | */
51 | public class StreamParameters
52 | {
53 | public int device = 0;
54 | public int channelCount = 2;
55 | public int sampleFormat = PortAudio.FORMAT_FLOAT_32;
56 | public double suggestedLatency = 0.050;
57 | }
58 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/src/com/portaudio/HostApiInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Portable Audio I/O Library
3 | * Java Binding for PortAudio
4 | *
5 | * Based on the Open Source API proposed by Ross Bencina
6 | * Copyright (c) 2008 Ross Bencina
7 | *
8 | * Permission is hereby granted, free of charge, to any person obtaining
9 | * a copy of this software and associated documentation files
10 | * (the "Software"), to deal in the Software without restriction,
11 | * including without limitation the rights to use, copy, modify, merge,
12 | * publish, distribute, sublicense, and/or sell copies of the Software,
13 | * and to permit persons to whom the Software is furnished to do so,
14 | * subject to the following conditions:
15 | *
16 | * The above copyright notice and this permission notice shall be
17 | * included in all copies or substantial portions of the Software.
18 | *
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | /*
29 | * The text above constitutes the entire PortAudio license; however,
30 | * the PortAudio community also makes the following non-binding requests:
31 | *
32 | * Any person wishing to distribute modifications to the Software is
33 | * requested to send the modifications to the original developer so that
34 | * they can be incorporated into the canonical version. It is also
35 | * requested that these non-binding requests be included along with the
36 | * license above.
37 | */
38 |
39 | /** @file
40 | @ingroup bindings_java
41 |
42 | @brief Information about a JPortAudio Host API.
43 | */
44 | package com.portaudio;
45 |
46 | /**
47 | * Equivalent to PaHostApiInfo
48 | * @see PortAudio
49 | * @see DeviceInfo
50 | * @author Phil Burk
51 | *
52 | */
53 | public class HostApiInfo
54 | {
55 | public int version;
56 | public int type;
57 | public String name;
58 | public int deviceCount;
59 | public int defaultInputDevice;
60 | public int defaultOutputDevice;
61 | }
62 |
--------------------------------------------------------------------------------
/portaudio/src/os/win/pa_x86_plain_converters.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Plain Intel IA32 assembly implementations of PortAudio sample converter functions.
3 | * Copyright (c) 1999-2002 Ross Bencina, Phil Burk
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining
6 | * a copy of this software and associated documentation files
7 | * (the "Software"), to deal in the Software without restriction,
8 | * including without limitation the rights to use, copy, modify, merge,
9 | * publish, distribute, sublicense, and/or sell copies of the Software,
10 | * and to permit persons to whom the Software is furnished to do so,
11 | * subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be
14 | * included in all copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
20 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 | */
24 |
25 | /*
26 | * The text above constitutes the entire PortAudio license; however,
27 | * the PortAudio community also makes the following non-binding requests:
28 | *
29 | * Any person wishing to distribute modifications to the Software is
30 | * requested to send the modifications to the original developer so that
31 | * they can be incorporated into the canonical version. It is also
32 | * requested that these non-binding requests be included along with the
33 | * license above.
34 | */
35 |
36 | /** @file
37 | @ingroup win_src
38 | */
39 |
40 | #ifndef PA_X86_PLAIN_CONVERTERS_H
41 | #define PA_X86_PLAIN_CONVERTERS_H
42 |
43 | #ifdef __cplusplus
44 | extern "C"
45 | {
46 | #endif /* __cplusplus */
47 |
48 |
49 | /**
50 | @brief Install optimized converter functions suitable for all IA32 processors
51 |
52 | It is recommended to call PaUtil_InitializeX86PlainConverters prior to calling Pa_Initialize
53 | */
54 | void PaUtil_InitializeX86PlainConverters( void );
55 |
56 |
57 | #ifdef __cplusplus
58 | }
59 | #endif /* __cplusplus */
60 | #endif /* PA_X86_PLAIN_CONVERTERS_H */
61 |
--------------------------------------------------------------------------------
/portaudio/cmake_support/template_portaudio.def:
--------------------------------------------------------------------------------
1 | ; $Id: $
2 | ;
3 | ; !!! @GENERATED_MESSAGE@ !!!
4 | EXPORTS
5 |
6 | ;
7 | Pa_GetVersion @1
8 | Pa_GetVersionText @2
9 | Pa_GetErrorText @3
10 | Pa_Initialize @4
11 | Pa_Terminate @5
12 | Pa_GetHostApiCount @6
13 | Pa_GetDefaultHostApi @7
14 | Pa_GetHostApiInfo @8
15 | Pa_HostApiTypeIdToHostApiIndex @9
16 | Pa_HostApiDeviceIndexToDeviceIndex @10
17 | Pa_GetLastHostErrorInfo @11
18 | Pa_GetDeviceCount @12
19 | Pa_GetDefaultInputDevice @13
20 | Pa_GetDefaultOutputDevice @14
21 | Pa_GetDeviceInfo @15
22 | Pa_IsFormatSupported @16
23 | Pa_OpenStream @17
24 | Pa_OpenDefaultStream @18
25 | Pa_CloseStream @19
26 | Pa_SetStreamFinishedCallback @20
27 | Pa_StartStream @21
28 | Pa_StopStream @22
29 | Pa_AbortStream @23
30 | Pa_IsStreamStopped @24
31 | Pa_IsStreamActive @25
32 | Pa_GetStreamInfo @26
33 | Pa_GetStreamTime @27
34 | Pa_GetStreamCpuLoad @28
35 | Pa_ReadStream @29
36 | Pa_WriteStream @30
37 | Pa_GetStreamReadAvailable @31
38 | Pa_GetStreamWriteAvailable @32
39 | Pa_GetSampleSize @33
40 | Pa_Sleep @34
41 | @DEF_EXCLUDE_ASIO_SYMBOLS@PaAsio_GetAvailableBufferSizes @50
42 | @DEF_EXCLUDE_ASIO_SYMBOLS@PaAsio_ShowControlPanel @51
43 | PaUtil_InitializeX86PlainConverters @52
44 | @DEF_EXCLUDE_ASIO_SYMBOLS@PaAsio_GetInputChannelName @53
45 | @DEF_EXCLUDE_ASIO_SYMBOLS@PaAsio_GetOutputChannelName @54
46 | PaUtil_SetDebugPrintFunction @55
47 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_GetDeviceDefaultFormat @56
48 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_GetDeviceRole @57
49 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_ThreadPriorityBoost @58
50 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_ThreadPriorityRevert @59
51 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_GetFramesPerHostBuffer @60
52 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_GetJackDescription @61
53 | @DEF_EXCLUDE_WASAPI_SYMBOLS@PaWasapi_GetJackCount @62
54 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio.dox:
--------------------------------------------------------------------------------
1 | /**
2 | @page java_binding JPortAudio Java Binding
3 | @ingroup jportaudio
4 |
5 | Note: this page has not been reviewed, and may contain errors.
6 |
7 | @section java_draft DRAFT - IN PROGRESS
8 |
9 | 9/4/12 JPortAudio is very new and should be considered an "alpha" release.
10 | The building of JPortAudio will eventually be integrated into the Makefile as an optional build.
11 |
12 | Currently JPortAudio is only supported for Windows and Macintosh. Please contact us if you want to help with porting Linux.
13 |
14 | For reference documentation of the JPortAudio API see: com.portaudio.PortAudio
15 |
16 | For an example see: PlaySine.java
17 |
18 | @section java_comp_windows Building JPortAudio on Windows
19 |
20 | Build the Java code using the Eclipse project in "jportaudio". Export as "jportaudio.jar".
21 |
22 | If you modify the JNI API then you will need to regenerate the JNI .h files using:
23 |
24 | @code
25 | cd bindings/java/scripts
26 | make_header.bat
27 | @endcode
28 |
29 | Build the JNI DLL using the Visual Studio 2010 solution in "java/c/build/vs2010/PortAudioJNI".
30 |
31 | @section java_use_windows Using JPortAudio on Windows
32 |
33 | Put the "jportaudio.jar" in the classpath for your application.
34 | Place the following libraries where they can be found, typically in the same folder as your application.
35 |
36 | - portaudio_x86.dll
37 | - portaudio_x64.dll
38 | - jportaudio_x86.dll
39 | - jportaudio_x64.dll
40 |
41 | @section java_comp_max Building JPortAudio on Mac
42 |
43 | These are notes from building JPortAudio on a Mac with 10.6.8 and XCode 4.
44 |
45 | I created a target of type 'C' library.
46 |
47 | I added the regular PortAudio frameworks plus the JavaVM framework.
48 |
49 | I modified com_portaudio_PortAudio.h and com_portaudio_BlockingStream.h so that jni.h could found.
50 |
51 | @code
52 | #if defined(__APPLE__)
53 | #include
54 | #else
55 | #include
56 | #endif
57 | @endcode
58 |
59 | This is bad because those header files are autogenerated and will be overwritten.
60 | We need a better solution for this.
61 |
62 | I had trouble finding the "libjportaudio.jnilib". So I added a Build Phase that copied the library to "/Users/phil/Library/Java/Extensions".
63 |
64 | On the Mac we can create a universal library for both 32 and 64-bit JVMs. So in the JAR file I will open "jportaudio" on Apple. ON WIndows I will continue to open "jportaudio_x64" and "jportaudio_x86".
65 | */
66 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/src/com/portaudio/DeviceInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Portable Audio I/O Library
3 | * Java Binding for PortAudio
4 | *
5 | * Based on the Open Source API proposed by Ross Bencina
6 | * Copyright (c) 2008 Ross Bencina
7 | *
8 | * Permission is hereby granted, free of charge, to any person obtaining
9 | * a copy of this software and associated documentation files
10 | * (the "Software"), to deal in the Software without restriction,
11 | * including without limitation the rights to use, copy, modify, merge,
12 | * publish, distribute, sublicense, and/or sell copies of the Software,
13 | * and to permit persons to whom the Software is furnished to do so,
14 | * subject to the following conditions:
15 | *
16 | * The above copyright notice and this permission notice shall be
17 | * included in all copies or substantial portions of the Software.
18 | *
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
23 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | /*
29 | * The text above constitutes the entire PortAudio license; however,
30 | * the PortAudio community also makes the following non-binding requests:
31 | *
32 | * Any person wishing to distribute modifications to the Software is
33 | * requested to send the modifications to the original developer so that
34 | * they can be incorporated into the canonical version. It is also
35 | * requested that these non-binding requests be included along with the
36 | * license above.
37 | */
38 |
39 | /** @file
40 | @ingroup bindings_java
41 |
42 | @brief Information about a JPortAudio device.
43 | */
44 | package com.portaudio;
45 |
46 | /**
47 | * Equivalent to PaDeviceInfo
48 | * @see PortAudio
49 | * @see HostApiInfo
50 | * @author Phil Burk
51 | *
52 | */
53 | public class DeviceInfo
54 | {
55 | public int version;
56 | public String name;
57 | public int hostApi;
58 | public int maxInputChannels;
59 | public int maxOutputChannels;
60 | public double defaultLowInputLatency;
61 | public double defaultHighInputLatency;
62 | public double defaultLowOutputLatency;
63 | public double defaultHighOutputLatency;
64 | public double defaultSampleRate;
65 | }
66 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/Stream.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_STREAM_HXX
2 | #define INCLUDED_PORTAUDIO_STREAM_HXX
3 |
4 | #include "portaudio.h"
5 |
6 | // ---------------------------------------------------------------------------------------
7 |
8 | // Forward declaration(s):
9 | namespace portaudio
10 | {
11 | class StreamParameters;
12 | }
13 |
14 | // ---------------------------------------------------------------------------------------
15 |
16 | // Declaration(s):
17 | namespace portaudio
18 | {
19 |
20 |
21 | //////
22 | /// @brief A Stream represents an active or inactive input and/or output data
23 | /// stream in the System.
24 | ///
25 | /// Concrete Stream classes should ensure themselves being in a closed state at
26 | /// destruction (i.e. by calling their own close() method in their deconstructor).
27 | /// Following good C++ programming practices, care must be taken to ensure no
28 | /// exceptions are thrown by the deconstructor of these classes. As a consequence,
29 | /// clients need to explicitly call close() to ensure the stream closed successfully.
30 | ///
31 | /// The Stream object can be used to manipulate the Stream's state. Also, time-constant
32 | /// and time-varying information about the Stream can be retreived.
33 | //////
34 | class Stream
35 | {
36 | public:
37 | // Opening/closing:
38 | virtual ~Stream();
39 |
40 | virtual void close();
41 | bool isOpen() const;
42 |
43 | // Additional set up:
44 | void setStreamFinishedCallback(PaStreamFinishedCallback *callback);
45 |
46 | // State management:
47 | void start();
48 | void stop();
49 | void abort();
50 |
51 | bool isStopped() const;
52 | bool isActive() const;
53 |
54 | // Stream info (time-constant, but might become time-variant soon):
55 | PaTime inputLatency() const;
56 | PaTime outputLatency() const;
57 | double sampleRate() const;
58 |
59 | // Stream info (time-varying):
60 | PaTime time() const;
61 |
62 | // Accessors for PortAudio PaStream, useful for interfacing
63 | // with PortAudio add-ons (such as PortMixer) for instance:
64 | const PaStream *paStream() const;
65 | PaStream *paStream();
66 |
67 | protected:
68 | Stream(); // abstract class
69 |
70 | PaStream *stream_;
71 |
72 | private:
73 | Stream(const Stream &); // non-copyable
74 | Stream &operator=(const Stream &); // non-copyable
75 | };
76 |
77 |
78 | } // namespace portaudio
79 |
80 |
81 | #endif // INCLUDED_PORTAUDIO_STREAM_HXX
82 |
83 |
--------------------------------------------------------------------------------
/gop/gopThresholds.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | # gop/gopThresholds.py ../../english_resources/milla2.txt ../../english_resources/milla2_align_wrongProns.phon ../../english_resources/milla2.phon
4 |
5 | import sys
6 | import os
7 |
8 | global ceredir
9 |
10 | class gopThresholds:
11 | '''
12 | Set the GOP thresholds for each target English phone
13 | Uses the builtin TTS from Mac Mavericks
14 | '''
15 | def __init__( self, fileName, fileName2, fileName3 ):
16 | """reads sentences in fileName, and artificial bad prons in fileName2"""
17 | self.runGOP( fileName, fileName2, fileName3 )
18 |
19 | def runGOP ( self, fileName, fileName2, fileName3 ):
20 | """fileName: sentences; fileName2: artificial bad prons; """
21 | file1 = open (fileName, 'r')
22 | sentences = file1.readlines()
23 | file1.close()
24 | file2 = open (fileName2, 'r')
25 | pronsAlign = file2.readlines()
26 | file2.close()
27 | file3 = open (fileName3, 'r')
28 | pronsASR = file3.readlines()
29 | file3.close()
30 |
31 | speaker = 'Alex'
32 | # speaker = 'Vicki'
33 |
34 | ind = 0
35 | for sent in sentences:
36 | if (ind < 10):
37 | ind+=1
38 | continue
39 | print ind
40 |
41 | aiff = 'alex_' + str(ind) + '.aiff'
42 | os.system('say -v ' + speaker + ' '+ sent )
43 | os.system('say -v ' + speaker + ' -o ' + aiff + ' ' + sent)
44 | tmp1 = open ('tmp.txt', 'w')
45 | pron = pronsAlign[ind]
46 | pron2 = pronsASR[ind]
47 | tmp1.write(sent)
48 | tmp1.write(pron)
49 | tmp1.write(pron2)
50 | tmp1.close()
51 |
52 | os.system( './gop_EN_forPython.sh ' + aiff + ' tmp.txt' )
53 | ind += 1
54 | break
55 |
56 | def usage( argv ):
57 | print 'Error: Too few arguments, no input files specified, exiting now!\n'
58 | print 'Usage: ' + argv[0] + ' \n\n'
59 | print ' Please try again!'
60 | sys.exit(1)
61 |
62 | def main( argv ):
63 | """Do something!"""
64 |
65 | if ( len(argv) < 4 ):
66 | usage( argv )
67 |
68 | SentenceFile = argv[1]
69 | PronFile = argv[2]
70 | ASRPronFile = argv[3]
71 |
72 | gopThresholds( SentenceFile, PronFile, ASRPronFile )
73 |
74 |
75 |
76 | if __name__ == '__main__':
77 | main ( sys.argv )
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/BlockingStream.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/BlockingStream.hxx"
2 |
3 | #include "portaudio.h"
4 |
5 | #include "portaudiocpp/StreamParameters.hxx"
6 | #include "portaudiocpp/Exception.hxx"
7 |
8 | namespace portaudio
9 | {
10 |
11 | // --------------------------------------------------------------------------------------
12 |
13 | BlockingStream::BlockingStream()
14 | {
15 | }
16 |
17 | BlockingStream::BlockingStream(const StreamParameters ¶meters)
18 | {
19 | open(parameters);
20 | }
21 |
22 | BlockingStream::~BlockingStream()
23 | {
24 | try
25 | {
26 | close();
27 | }
28 | catch (...)
29 | {
30 | // ignore all errors
31 | }
32 | }
33 |
34 | // --------------------------------------------------------------------------------------
35 |
36 | void BlockingStream::open(const StreamParameters ¶meters)
37 | {
38 | PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
39 | parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), NULL, NULL);
40 |
41 | if (err != paNoError)
42 | {
43 | throw PaException(err);
44 | }
45 | }
46 |
47 | // --------------------------------------------------------------------------------------
48 |
49 | void BlockingStream::read(void *buffer, unsigned long numFrames)
50 | {
51 | PaError err = Pa_ReadStream(stream_, buffer, numFrames);
52 |
53 | if (err != paNoError)
54 | {
55 | throw PaException(err);
56 | }
57 | }
58 |
59 | void BlockingStream::write(const void *buffer, unsigned long numFrames)
60 | {
61 | PaError err = Pa_WriteStream(stream_, buffer, numFrames);
62 |
63 | if (err != paNoError)
64 | {
65 | throw PaException(err);
66 | }
67 | }
68 |
69 | // --------------------------------------------------------------------------------------
70 |
71 | signed long BlockingStream::availableReadSize() const
72 | {
73 | signed long avail = Pa_GetStreamReadAvailable(stream_);
74 |
75 | if (avail < 0)
76 | {
77 | throw PaException(avail);
78 | }
79 |
80 | return avail;
81 | }
82 |
83 | signed long BlockingStream::availableWriteSize() const
84 | {
85 | signed long avail = Pa_GetStreamWriteAvailable(stream_);
86 |
87 | if (avail < 0)
88 | {
89 | throw PaException(avail);
90 | }
91 |
92 | return avail;
93 | }
94 |
95 | // --------------------------------------------------------------------------------------
96 |
97 | } // portaudio
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/DirectionSpecificStreamParameters.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_SINGLEDIRECTIONSTREAMPARAMETERS_HXX
2 | #define INCLUDED_PORTAUDIO_SINGLEDIRECTIONSTREAMPARAMETERS_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include
7 |
8 | #include "portaudio.h"
9 |
10 | #include "portaudiocpp/System.hxx"
11 | #include "portaudiocpp/SampleDataFormat.hxx"
12 |
13 | // ---------------------------------------------------------------------------------------
14 |
15 | // Forward declaration(s):
16 | namespace portaudio
17 | {
18 | class Device;
19 | }
20 |
21 | // ---------------------------------------------------------------------------------------
22 |
23 | // Declaration(s):
24 | namespace portaudio
25 | {
26 |
27 | //////
28 | /// @brief All parameters for one direction (either in or out) of a Stream. Together with
29 | /// parameters common to both directions, two DirectionSpecificStreamParameters can make up
30 | /// a StreamParameters object which contains all parameters for a Stream.
31 | //////
32 | class DirectionSpecificStreamParameters
33 | {
34 | public:
35 | static DirectionSpecificStreamParameters null();
36 |
37 | DirectionSpecificStreamParameters();
38 | DirectionSpecificStreamParameters(const Device &device, int numChannels, SampleDataFormat format,
39 | bool interleaved, PaTime suggestedLatency, void *hostApiSpecificStreamInfo);
40 |
41 | // Set up methods:
42 | void setDevice(const Device &device);
43 | void setNumChannels(int numChannels);
44 |
45 | void setSampleFormat(SampleDataFormat format, bool interleaved = true);
46 | void setHostApiSpecificSampleFormat(PaSampleFormat format, bool interleaved = true);
47 |
48 | void setSuggestedLatency(PaTime latency);
49 |
50 | void setHostApiSpecificStreamInfo(void *streamInfo);
51 |
52 | // Accessor methods:
53 | PaStreamParameters *paStreamParameters();
54 | const PaStreamParameters *paStreamParameters() const;
55 |
56 | Device &device() const;
57 | int numChannels() const;
58 |
59 | SampleDataFormat sampleFormat() const;
60 | bool isSampleFormatInterleaved() const;
61 | bool isSampleFormatHostApiSpecific() const;
62 | PaSampleFormat hostApiSpecificSampleFormat() const;
63 |
64 | PaTime suggestedLatency() const;
65 |
66 | void *hostApiSpecificStreamInfo() const;
67 |
68 | private:
69 | PaStreamParameters paStreamParameters_;
70 | };
71 |
72 |
73 | } // namespace portaudio
74 |
75 | // ---------------------------------------------------------------------------------------
76 |
77 | #endif // INCLUDED_PORTAUDIO_SINGLEDIRECTIONSTREAMPARAMETERS_HXX
78 |
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/start_stop_abort.dox:
--------------------------------------------------------------------------------
1 | /** @page start_stop_abort Starting, Stopping and Aborting a Stream
2 | @ingroup tutorial
3 |
4 | @section tut_startstop1 Starting, Stopping and Aborting a Stream
5 |
6 | PortAudio will not start playing back audio until you start the stream. After calling Pa_StartStream(), PortAudio will start calling your callback function to perform the audio processing.
7 |
8 | @code
9 | err = Pa_StartStream( stream );
10 | if( err != paNoError ) goto error;
11 | @endcode
12 |
13 | You can communicate with your callback routine through the data structure you passed in on the open call, or through global variables, or using other interprocess communication techniques, but please be aware that your callback function may be called at interrupt time when your foreground process is least expecting it. So avoid sharing complex data structures that are easily corrupted like double linked lists, and avoid using locks such as mutexs as this may cause your callback function to block and therefore drop audio. Such techniques may even cause deadlock on some platforms.
14 |
15 | PortAudio will continue to call your callback and process audio until you stop the stream. This can be done in one of several ways, but, before we do so, we'll want to see that some of our audio gets processed by sleeping for a few seconds. This is easy to do with Pa_Sleep(), which is used by many of the examples in the patests/ directory for exactly this purpose. Note that, for a variety of reasons, you can not rely on this function for accurate scheduling, so your stream may not run for exactly the same amount of time as you expect, but it's good enough for our example.
16 |
17 | @code
18 | /* Sleep for several seconds. */
19 | Pa_Sleep(NUM_SECONDS*1000);
20 | @endcode
21 |
22 | Now we need to stop playback. There are several ways to do this, the simplest of which is to call Pa_StopStream():
23 |
24 | @code
25 | err = Pa_StopStream( stream );
26 | if( err != paNoError ) goto error;
27 | @endcode
28 |
29 | Pa_StopStream() is designed to make sure that the buffers you've processed in your callback are all played, which may cause some delay. Alternatively, you could call Pa_AbortStream(). On some platforms, aborting the stream is much faster and may cause some data processed by your callback not to be played.
30 |
31 | Another way to stop the stream is to return either paComplete, or paAbort from your callback. paComplete ensures that the last buffer is played whereas paAbort stops the stream as soon as possible. If you stop the stream using this technique, you will need to call Pa_StopStream() before starting the stream again.
32 |
33 | Previous: \ref open_default_stream | Next: \ref terminating_portaudio
34 |
35 | */
--------------------------------------------------------------------------------
/portaudio/src/os/win/pa_win_wdmks_utils.h:
--------------------------------------------------------------------------------
1 | #ifndef PA_WIN_WDMKS_UTILS_H
2 | #define PA_WIN_WDMKS_UTILS_H
3 |
4 | /*
5 | * PortAudio Portable Real-Time Audio Library
6 | * Windows WDM KS utilities
7 | *
8 | * Copyright (c) 1999 - 2007 Ross Bencina, Andrew Baldwin
9 | *
10 | * Permission is hereby granted, free of charge, to any person obtaining
11 | * a copy of this software and associated documentation files
12 | * (the "Software"), to deal in the Software without restriction,
13 | * including without limitation the rights to use, copy, modify, merge,
14 | * publish, distribute, sublicense, and/or sell copies of the Software,
15 | * and to permit persons to whom the Software is furnished to do so,
16 | * subject to the following conditions:
17 | *
18 | * The above copyright notice and this permission notice shall be
19 | * included in all copies or substantial portions of the Software.
20 | *
21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
25 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
26 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | */
29 |
30 | /*
31 | * The text above constitutes the entire PortAudio license; however,
32 | * the PortAudio community also makes the following non-binding requests:
33 | *
34 | * Any person wishing to distribute modifications to the Software is
35 | * requested to send the modifications to the original developer so that
36 | * they can be incorporated into the canonical version. It is also
37 | * requested that these non-binding requests be included along with the
38 | * license above.
39 | */
40 |
41 | /** @file
42 | @brief Utilities for working with the Windows WDM KS API
43 | */
44 |
45 | #ifdef __cplusplus
46 | extern "C" {
47 | #endif
48 |
49 | /**
50 | Query for the maximum number of channels supported by any pin of the
51 | specified device. Returns 0 if the query fails for any reason.
52 |
53 | @param wcharDevicePath A system level PnP interface path, supplied as a WCHAR unicode string.
54 | Declard as void* to avoid introducing a dependency on wchar_t here.
55 |
56 | @param isInput A flag specifying whether to query for input (non-zero) or output (zero) channels.
57 | */
58 | int PaWin_WDMKS_QueryFilterMaximumChannelCount( void *wcharDevicePath, int isInput );
59 |
60 |
61 | #ifdef __cplusplus
62 | }
63 | #endif /* __cplusplus */
64 |
65 | #endif /* PA_WIN_WDMKS_UTILS_H */
--------------------------------------------------------------------------------
/EN2/stats_hmm9:
--------------------------------------------------------------------------------
1 | 1 "b" 10048 27647.361328 17586.414062 12732.957031
2 | 2 "d" 25821 57358.906250 41399.828125 34713.281250
3 | 3 "f" 10138 23478.568359 55434.160156 24503.308594
4 | 4 "g" 3736 10630.694336 8763.965820 6378.045410
5 | 5 "k" 22868 73311.429688 57580.937500 67543.648438
6 | 6 "l" 21282 40478.636719 72014.796875 44130.726562
7 | 7 "m" 17300 27718.449219 47012.515625 30501.447266
8 | 8 "n" 39914 58247.656250 101918.085938 62848.656250
9 | 9 "p" 16455 29071.410156 47183.558594 72778.031250
10 | 10 "r" 25730 50376.500000 70329.835938 43756.968750
11 | 11 "s" 28439 76320.789062 156526.750000 83333.039062
12 | 12 "t" 38006 83406.437500 80453.968750 69685.617188
13 | 13 "v" 9444 16164.465820 17182.802734 17488.097656
14 | 14 "w" 8919 20638.107422 23186.277344 20554.445312
15 | 15 "y" 4038 10045.616211 14329.878906 10075.307617
16 | 16 "z" 16773 48843.566406 71122.015625 45054.613281
17 | 17 "aa" 11445 36807.542969 68339.765625 29998.115234
18 | 18 "ae" 11241 30129.230469 65665.164062 32160.363281
19 | 19 "ah" 65548 94048.804688 155797.984375 91633.210938
20 | 20 "ao" 6314 21943.212891 33850.625000 16922.699219
21 | 21 "aw" 2203 7785.137695 16702.117188 10048.992188
22 | 22 "ay" 7657 23015.285156 50791.414062 33754.660156
23 | 23 "ch" 2178 7627.091309 10881.964844 6540.508301
24 | 24 "dh" 11347 19833.248047 13916.465820 13529.567383
25 | 25 "eh" 16452 36672.828125 68072.929688 36971.785156
26 | 26 "er" 16848 37579.824219 75639.570312 42359.937500
27 | 27 "ey" 9482 27091.878906 57651.152344 29267.611328
28 | 28 "hh" 6273 25746.580078 10428.899414 10389.032227
29 | 29 "ih" 31229 78496.500000 50591.558594 38830.113281
30 | 30 "iy" 22502 48899.347656 113714.046875 53314.457031
31 | 31 "jh" 2985 8700.858398 12041.345703 7742.076172
32 | 32 "ng" 4789 13388.666992 18258.349609 10880.768555
33 | 33 "ow" 7464 20965.140625 48808.898438 24521.560547
34 | 34 "oy" 1005 5439.166016 3534.718262 4976.806152
35 | 35 "sh" 4878 14099.420898 32557.259766 14717.208984
36 | 36 "sp" 92783 278777.687500 735443.250000 183593.250000
37 | 37 "th" 2739 5887.855957 11492.112305 8120.801758
38 | 38 "uh" 1606 2565.032715 3325.726807 2692.246094
39 | 39 "uw" 5648 10499.252930 22892.884766 13020.144531
40 | 40 "zh" 320 1033.640015 1377.555176 819.287354
41 | 41 "sil" 43358 278777.687500 735443.250000 183593.250000
42 |
--------------------------------------------------------------------------------
/portaudio/doc/src/tutorial/utility_functions.dox:
--------------------------------------------------------------------------------
1 | /** @page utility_functions Utility Functions
2 | @ingroup tutorial
3 |
4 | In addition to the functions described elsewhere in this tutorial, PortAudio provides a number of Utility functions that are useful in a variety of circumstances.
5 | You'll want to read the portaudio.h reference, which documents the entire V19 API for details, but we'll try to cover the basics here.
6 |
7 | @section tut_util2 Version Information
8 |
9 | PortAudio offers two functions to determine the PortAudio Version. This is most useful when you are using PortAudio as a dynamic library, but it may also be useful at other times.
10 |
11 | @code
12 | int Pa_GetVersion (void)
13 | const char * Pa_GetVersionText (void)
14 | @endcode
15 |
16 | @section tut_util3 Error Text
17 |
18 | PortAudio allows you to get error text from an error number.
19 |
20 | @code
21 | const char * Pa_GetErrorText (PaError errorCode)
22 | @endcode
23 |
24 | @section tut_util4 Stream State
25 |
26 | PortAudio Streams exist in 3 states: Active, Stopped, and Callback Stopped. If a stream is in callback stopped state, you'll need to stop it before you can start it again. If you need to query the state of a PortAudio stream, there are two functions for doing so:
27 |
28 | @code
29 | PaError Pa_IsStreamStopped (PaStream *stream)
30 | PaError Pa_IsStreamActive (PaStream *stream)
31 | @endcode
32 |
33 | @section tut_util5 Stream Info
34 |
35 | If you need to retrieve info about a given stream, such as latency, and sample rate info, there's a function for that too:
36 |
37 | @code
38 | const PaStreamInfo * Pa_GetStreamInfo (PaStream *stream)
39 | @endcode
40 |
41 | @section tut_util6 Stream Time
42 |
43 | If you need to synchronise other activities such as display updates or MIDI output with the PortAudio callback you need to know the current time according to the same timebase used by the stream callback timestamps.
44 |
45 | @code
46 | PaTime Pa_GetStreamTime (PaStream *stream)
47 | @endcode
48 |
49 | @section tut_util6CPU Usage
50 |
51 | To determine how much CPU is being used by the callback, use these:
52 |
53 | @code
54 | double Pa_GetStreamCpuLoad (PaStream *stream)
55 | @endcode
56 |
57 | @section tut_util7 Other utilities
58 |
59 | These functions allow you to determine the size of a sample from its format and sleep for a given amount of time. The sleep function should not be used for precise timing or synchronization because it makes few guarantees about the exact length of time it waits. It is most useful for testing.
60 |
61 | @code
62 | PaError Pa_GetSampleSize (PaSampleFormat format)
63 | void Pa_Sleep (long msec)
64 | @endcode
65 |
66 |
67 | Previous: \ref terminating_portaudio | Next: \ref querying_devices
68 |
69 | */
--------------------------------------------------------------------------------
/portaudio/doc/utils/checkfiledocs.py:
--------------------------------------------------------------------------------
1 | import os
2 | import os.path
3 | import string
4 |
5 | paRootDirectory = '../../'
6 | paHtmlDocDirectory = os.path.join( paRootDirectory, "doc", "html" )
7 |
8 | ## Script to check documentation status
9 | ## this script assumes that html doxygen documentation has been generated
10 | ##
11 | ## it then walks the entire portaudio source tree and check that
12 | ## - every source file (.c,.h,.cpp) has a doxygen comment block containing
13 | ## - a @file directive
14 | ## - a @brief directive
15 | ## - a @ingroup directive
16 | ## - it also checks that a corresponding html documentation file has been generated.
17 | ##
18 | ## This can be used as a first-level check to make sure the documentation is in order.
19 | ##
20 | ## The idea is to get a list of which files are missing doxygen documentation.
21 |
22 |
23 | # recurse from top and return a list of all with the given
24 | # extensions. ignore .svn directories. return absolute paths
25 | def recursiveFindFiles( top, extensions, includePaths ):
26 | result = []
27 | for (dirpath, dirnames, filenames) in os.walk(top):
28 | if not '.svn' in dirpath:
29 | for f in filenames:
30 | if os.path.splitext(f)[1] in extensions:
31 | if includePaths:
32 | result.append( os.path.abspath( os.path.join( dirpath, f ) ) )
33 | else:
34 | result.append( f )
35 | return result
36 |
37 | # generate the html file name that doxygen would use for
38 | # a particular source file. this is a brittle conversion
39 | # which i worked out by trial and error
40 | def doxygenHtmlDocFileName( sourceFile ):
41 | return sourceFile.replace( '_', '__' ).replace( '.', '_8' ) + '.html'
42 |
43 |
44 | sourceFiles = recursiveFindFiles( paRootDirectory, [ '.c', '.h', '.cpp' ], True );
45 | docFiles = recursiveFindFiles( paHtmlDocDirectory, [ '.html' ], False );
46 |
47 |
48 |
49 | currentFile = ""
50 |
51 | def printError( f, message ):
52 | global currentFile
53 | if f != currentFile:
54 | currentFile = f
55 | print f, ":"
56 | print "\t!", message
57 |
58 |
59 | for f in sourceFiles:
60 | if not doxygenHtmlDocFileName( os.path.basename(f) ) in docFiles:
61 | printError( f, "no doxygen generated doc page" )
62 |
63 | s = file( f, 'rt' ).read()
64 |
65 | if not '/**' in s:
66 | printError( f, "no doxygen /** block" )
67 |
68 | if not '@file' in s:
69 | printError( f, "no doxygen @file tag" )
70 |
71 | if not '@brief' in s:
72 | printError( f, "no doxygen @brief tag" )
73 |
74 | if not '@ingroup' in s:
75 | printError( f, "no doxygen @ingroup tag" )
76 |
77 |
78 |
--------------------------------------------------------------------------------
/portaudio/bindings/java/jportaudio/jtests/com/portaudio/PlaySine.java:
--------------------------------------------------------------------------------
1 |
2 | /** @file
3 | @ingroup bindings_java
4 |
5 | @brief Example that shows how to play sine waves using JPortAudio.
6 | */
7 | package com.portaudio;
8 |
9 | import com.portaudio.TestBasic.SineOscillator;
10 |
11 | public class PlaySine
12 | {
13 | /**
14 | * Write a sine wave to the stream.
15 | * @param stream
16 | * @param framesPerBuffer
17 | * @param numFrames
18 | * @param sampleRate
19 | */
20 | private void writeSineData( BlockingStream stream, int framesPerBuffer,
21 | int numFrames, int sampleRate )
22 | {
23 | float[] buffer = new float[framesPerBuffer * 2];
24 | SineOscillator osc1 = new SineOscillator( 200.0, sampleRate );
25 | SineOscillator osc2 = new SineOscillator( 300.0, sampleRate );
26 | int framesLeft = numFrames;
27 | while( framesLeft > 0 )
28 | {
29 | int index = 0;
30 | int framesToWrite = (framesLeft > framesPerBuffer) ? framesPerBuffer
31 | : framesLeft;
32 | for( int j = 0; j < framesToWrite; j++ )
33 | {
34 | buffer[index++] = (float) osc1.next();
35 | buffer[index++] = (float) osc2.next();
36 | }
37 | stream.write( buffer, framesToWrite );
38 | framesLeft -= framesToWrite;
39 | }
40 | }
41 |
42 | /**
43 | * Create a stream on the default device then play sine waves.
44 | */
45 | public void play()
46 | {
47 | PortAudio.initialize();
48 |
49 | // Get the default device and setup the stream parameters.
50 | int deviceId = PortAudio.getDefaultOutputDevice();
51 | DeviceInfo deviceInfo = PortAudio.getDeviceInfo( deviceId );
52 | double sampleRate = deviceInfo.defaultSampleRate;
53 | System.out.println( " deviceId = " + deviceId );
54 | System.out.println( " sampleRate = " + sampleRate );
55 | System.out.println( " device name = " + deviceInfo.name );
56 |
57 | StreamParameters streamParameters = new StreamParameters();
58 | streamParameters.channelCount = 2;
59 | streamParameters.device = deviceId;
60 | streamParameters.suggestedLatency = deviceInfo.defaultLowOutputLatency;
61 | System.out.println( " suggestedLatency = "
62 | + streamParameters.suggestedLatency );
63 |
64 | int framesPerBuffer = 256;
65 | int flags = 0;
66 |
67 | // Open a stream for output.
68 | BlockingStream stream = PortAudio.openStream( null, streamParameters,
69 | (int) sampleRate, framesPerBuffer, flags );
70 |
71 | int numFrames = (int) (sampleRate * 4); // enough for 4 seconds
72 |
73 | stream.start();
74 |
75 | writeSineData( stream, framesPerBuffer, numFrames, (int) sampleRate );
76 |
77 | stream.stop();
78 | stream.close();
79 |
80 | PortAudio.terminate();
81 | System.out.println( "JPortAudio test complete." );
82 | }
83 |
84 | public static void main( String[] args )
85 | {
86 | PlaySine player = new PlaySine();
87 | player.play();
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/source/portaudiocpp/CppFunCallbackStream.cxx:
--------------------------------------------------------------------------------
1 | #include "portaudiocpp/CppFunCallbackStream.hxx"
2 |
3 | #include "portaudiocpp/StreamParameters.hxx"
4 | #include "portaudiocpp/Exception.hxx"
5 |
6 | namespace portaudio
7 | {
8 | namespace impl
9 | {
10 | //////
11 | /// Adapts any a C++ callback to a C-callable function (ie this function). A
12 | /// pointer to a struct with the C++ function pointer and the actual user data should be
13 | /// passed as the ``userData'' parameter when setting up the callback.
14 | //////
15 | int cppCallbackToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
16 | const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
17 | {
18 | FunCallbackStream::CppToCCallbackData *data = static_cast(userData);
19 | return data->funPtr(inputBuffer, outputBuffer, numFrames, timeInfo, statusFlags, data->userData);
20 | }
21 | }
22 |
23 | // -----------------------------------------------------------------------------------
24 |
25 | FunCallbackStream::CppToCCallbackData::CppToCCallbackData()
26 | {
27 | }
28 |
29 | FunCallbackStream::CppToCCallbackData::CppToCCallbackData(CallbackFunPtr funPtr, void *userData) : funPtr(funPtr), userData(userData)
30 | {
31 | }
32 |
33 | void FunCallbackStream::CppToCCallbackData::init(CallbackFunPtr funPtr, void *userData)
34 | {
35 | this->funPtr = funPtr;
36 | this->userData = userData;
37 | }
38 |
39 | // -----------------------------------------------------------------------------------
40 |
41 | FunCallbackStream::FunCallbackStream()
42 | {
43 | }
44 |
45 | FunCallbackStream::FunCallbackStream(const StreamParameters ¶meters, CallbackFunPtr funPtr, void *userData) : adapterData_(funPtr, userData)
46 | {
47 | open(parameters);
48 | }
49 |
50 | FunCallbackStream::~FunCallbackStream()
51 | {
52 | try
53 | {
54 | close();
55 | }
56 | catch (...)
57 | {
58 | // ignore all errors
59 | }
60 | }
61 |
62 | void FunCallbackStream::open(const StreamParameters ¶meters, CallbackFunPtr funPtr, void *userData)
63 | {
64 | adapterData_.init(funPtr, userData);
65 | open(parameters);
66 | }
67 |
68 | void FunCallbackStream::open(const StreamParameters ¶meters)
69 | {
70 | PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
71 | parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), &impl::cppCallbackToPaCallbackAdapter,
72 | static_cast(&adapterData_));
73 |
74 | if (err != paNoError)
75 | {
76 | throw PaException(err);
77 | }
78 | }
79 |
80 | // -----------------------------------------------------------------------------------
81 | }
82 |
--------------------------------------------------------------------------------
/portaudio/src/hostapi/oss/recplay.c:
--------------------------------------------------------------------------------
1 | /*
2 | * recplay.c
3 | * Phil Burk
4 | * Minimal record and playback test.
5 | *
6 | */
7 | #include
8 | #include
9 | #include
10 | #ifndef __STDC__
11 | /* #include */
12 | #endif /* __STDC__ */
13 | #include
14 | #ifdef __STDC__
15 | #include
16 | #else /* __STDC__ */
17 | #include
18 | #endif /* __STDC__ */
19 | #include
20 |
21 | #define NUM_BYTES (64*1024)
22 | #define BLOCK_SIZE (4*1024)
23 |
24 | #define AUDIO "/dev/dsp"
25 |
26 | char buffer[NUM_BYTES];
27 |
28 | int audioDev = 0;
29 |
30 | main (int argc, char *argv[])
31 | {
32 | int numLeft;
33 | char *ptr;
34 | int num;
35 | int samplesize;
36 |
37 | /********** RECORD ********************/
38 | /* Open audio device. */
39 | audioDev = open (AUDIO, O_RDONLY, 0);
40 | if (audioDev == -1)
41 | {
42 | perror (AUDIO);
43 | exit (-1);
44 | }
45 |
46 | /* Set to 16 bit samples. */
47 | samplesize = 16;
48 | ioctl(audioDev, SNDCTL_DSP_SAMPLESIZE, &samplesize);
49 | if (samplesize != 16)
50 | {
51 | perror("Unable to set the sample size.");
52 | exit(-1);
53 | }
54 |
55 | /* Record in blocks */
56 | printf("Begin recording.\n");
57 | numLeft = NUM_BYTES;
58 | ptr = buffer;
59 | while( numLeft >= BLOCK_SIZE )
60 | {
61 | if ( (num = read (audioDev, ptr, BLOCK_SIZE)) < 0 )
62 | {
63 | perror (AUDIO);
64 | exit (-1);
65 | }
66 | else
67 | {
68 | printf("Read %d bytes\n", num);
69 | ptr += num;
70 | numLeft -= num;
71 | }
72 | }
73 |
74 | close( audioDev );
75 |
76 | /********** PLAYBACK ********************/
77 | /* Open audio device for writing. */
78 | audioDev = open (AUDIO, O_WRONLY, 0);
79 | if (audioDev == -1)
80 | {
81 | perror (AUDIO);
82 | exit (-1);
83 | }
84 |
85 | /* Set to 16 bit samples. */
86 | samplesize = 16;
87 | ioctl(audioDev, SNDCTL_DSP_SAMPLESIZE, &samplesize);
88 | if (samplesize != 16)
89 | {
90 | perror("Unable to set the sample size.");
91 | exit(-1);
92 | }
93 |
94 | /* Play in blocks */
95 | printf("Begin playing.\n");
96 | numLeft = NUM_BYTES;
97 | ptr = buffer;
98 | while( numLeft >= BLOCK_SIZE )
99 | {
100 | if ( (num = write (audioDev, ptr, BLOCK_SIZE)) < 0 )
101 | {
102 | perror (AUDIO);
103 | exit (-1);
104 | }
105 | else
106 | {
107 | printf("Wrote %d bytes\n", num);
108 | ptr += num;
109 | numLeft -= num;
110 | }
111 | }
112 |
113 | close( audioDev );
114 | }
115 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/SConscript:
--------------------------------------------------------------------------------
1 | import os.path
2 |
3 | Import("env", "buildDir")
4 | env.Append(CPPPATH="include")
5 |
6 | ApiVer = "0.0.12"
7 | Major, Minor, Micro = [int(c) for c in ApiVer.split(".")]
8 |
9 | sharedLibs = []
10 | staticLibs = []
11 | Import("Platform", "Posix")
12 | if Platform in Posix:
13 | env["SHLIBSUFFIX"] = ".so.%d.%d.%d" % (Major, Minor, Micro)
14 | soFile = "libportaudiocpp.so"
15 | if Platform != 'darwin':
16 | env.AppendUnique(SHLINKFLAGS="-Wl,-soname=%s.%d" % (soFile, Major))
17 |
18 | # Create symlinks
19 | def symlink(env, target, source):
20 | trgt = str(target[0])
21 | src = str(source[0])
22 | if os.path.islink(trgt) or os.path.exists(trgt):
23 | os.remove(trgt)
24 | os.symlink(os.path.basename(src), trgt)
25 | lnk0 = env.Command(soFile + ".%d" % (Major), soFile + ".%d.%d.%d" % (Major, Minor, Micro), symlink)
26 | lnk1 = env.Command(soFile, soFile + ".%d" % (Major), symlink)
27 | sharedLibs.append(lnk0)
28 | sharedLibs.append(lnk1)
29 |
30 | src = [os.path.join("source", "portaudiocpp", "%s.cxx" % f) for f in ("BlockingStream", "CallbackInterface", \
31 | "CallbackStream", "CFunCallbackStream","CppFunCallbackStream", "Device",
32 | "DirectionSpecificStreamParameters", "Exception", "HostApi", "InterfaceCallbackStream",
33 | "MemFunCallbackStream", "Stream", "StreamParameters", "System", "SystemDeviceIterator",
34 | "SystemHostApiIterator")]
35 | env.Append(LIBS="portaudio", LIBPATH=buildDir)
36 | sharedLib = env.SharedLibrary("portaudiocpp", src, LIBS=["portaudio"])
37 | staticLib = env.Library("portaudiocpp", src, LIBS=["portaudio"])
38 | sharedLibs.append(sharedLib)
39 | staticLibs.append(staticLib)
40 |
41 | headers = Split("""AutoSystem.hxx
42 | BlockingStream.hxx
43 | CallbackInterface.hxx
44 | CallbackStream.hxx
45 | CFunCallbackStream.hxx
46 | CppFunCallbackStream.hxx
47 | Device.hxx
48 | DirectionSpecificStreamParameters.hxx
49 | Exception.hxx
50 | HostApi.hxx
51 | InterfaceCallbackStream.hxx
52 | MemFunCallbackStream.hxx
53 | PortAudioCpp.hxx
54 | SampleDataFormat.hxx
55 | Stream.hxx
56 | StreamParameters.hxx
57 | SystemDeviceIterator.hxx
58 | SystemHostApiIterator.hxx
59 | System.hxx
60 | """)
61 | if env["PLATFORM"] == "win32":
62 | headers.append("AsioDeviceAdapter.hxx")
63 | headers = [File(os.path.join("include", "portaudiocpp", h)) for h in headers]
64 |
65 | Return("sharedLibs", "staticLibs", "headers")
66 |
--------------------------------------------------------------------------------
/portaudio/bindings/cpp/include/portaudiocpp/StreamParameters.hxx:
--------------------------------------------------------------------------------
1 | #ifndef INCLUDED_PORTAUDIO_STREAMPARAMETERS_HXX
2 | #define INCLUDED_PORTAUDIO_STREAMPARAMETERS_HXX
3 |
4 | // ---------------------------------------------------------------------------------------
5 |
6 | #include "portaudio.h"
7 |
8 | #include "portaudiocpp/DirectionSpecificStreamParameters.hxx"
9 |
10 | // ---------------------------------------------------------------------------------------
11 |
12 | // Declaration(s):
13 | namespace portaudio
14 | {
15 |
16 | //////
17 | /// @brief The entire set of parameters needed to configure and open
18 | /// a Stream.
19 | ///
20 | /// It contains parameters of input, output and shared parameters.
21 | /// Using the isSupported() method, the StreamParameters can be
22 | /// checked if opening a Stream using this StreamParameters would
23 | /// succeed or not. Accessors are provided to higher-level parameters
24 | /// aswell as the lower-level parameters which are mainly intended for
25 | /// internal use.
26 | //////
27 | class StreamParameters
28 | {
29 | public:
30 | StreamParameters();
31 | StreamParameters(const DirectionSpecificStreamParameters &inputParameters,
32 | const DirectionSpecificStreamParameters &outputParameters, double sampleRate,
33 | unsigned long framesPerBuffer, PaStreamFlags flags);
34 |
35 | // Set up for direction-specific:
36 | void setInputParameters(const DirectionSpecificStreamParameters ¶meters);
37 | void setOutputParameters(const DirectionSpecificStreamParameters ¶meters);
38 |
39 | // Set up for common parameters:
40 | void setSampleRate(double sampleRate);
41 | void setFramesPerBuffer(unsigned long framesPerBuffer);
42 | void setFlag(PaStreamFlags flag);
43 | void unsetFlag(PaStreamFlags flag);
44 | void clearFlags();
45 |
46 | // Validation:
47 | bool isSupported() const;
48 |
49 | // Accessors (direction-specific):
50 | DirectionSpecificStreamParameters &inputParameters();
51 | const DirectionSpecificStreamParameters &inputParameters() const;
52 | DirectionSpecificStreamParameters &outputParameters();
53 | const DirectionSpecificStreamParameters &outputParameters() const;
54 |
55 | // Accessors (common):
56 | double sampleRate() const;
57 | unsigned long framesPerBuffer() const;
58 | PaStreamFlags flags() const;
59 | bool isFlagSet(PaStreamFlags flag) const;
60 |
61 | private:
62 | // Half-duplex specific parameters:
63 | DirectionSpecificStreamParameters inputParameters_;
64 | DirectionSpecificStreamParameters outputParameters_;
65 |
66 | // Common parameters:
67 | double sampleRate_;
68 | unsigned long framesPerBuffer_;
69 | PaStreamFlags flags_;
70 | };
71 |
72 |
73 | } // namespace portaudio
74 |
75 | // ---------------------------------------------------------------------------------------
76 |
77 | #endif // INCLUDED_PORTAUDIO_STREAMPARAMETERS_HXX
78 |
--------------------------------------------------------------------------------