Skip to main content

Audio and visual stimuli generation tool

Project description

cleese

[Paper] [Documentation] [Tutorials]

CLEESE ("Ministry of Silly Talks") is a Python toolbox to help the generation of randomized sound and image stimuli for neuroscience research. It was originally created to generate arbitrary many random variations around an original speech recording (hence, "silly talks"). It has now been extended to provide a variety of sound and image transformation algorithms (so-called Engines) also able e.g. to create random expressive variations on a human face.

Setup

You can download and install the latest version of CLEESE with the following command:

pip install cleese-stim

Available Engines

CLEESE is currently composed of two transformation engines: PhaseVocoder and FaceWarp.

  • PhaseVocoder allows one to create random fluctuations around an audio file’s original contour of pitch, loudness, timbre and speed (i.e. roughly defined, its prosody). One of its foreseen applications is the generation of very many random voice stimuli for reverse correlation experiments.
  • FaceWarp uses mediapipe's Face Mesh API to introduce random or precomputed deformation in the expression of a visage on an image. This engine was designed to produce batches of deformed faces for reverse correlation experiments.

Basic Usage

CLEESE runs in completely in Python. Python 3.8.10 was used for the most recent testing.

PhaseVocoder

import cleese_stim as cleese
from cleese_stim.engines import PhaseVocoder

inputFile  = 'path_to_input_sound.wav'
configFile = 'path_to_config_file.toml'

cleese.generate_stimuli(PhaseVocoder, inputFile, configFile)

The config_file controls the parameters of the manipulation. For more information and further functionality see the documentation.

Acknowledgements

CLEESE was originally designed in 2018 by Juan José Burred, Emmanuel Ponsot and Jean-Julien Aucouturier at STMS Lab (IRCAM/CNRS/Sorbonne Université, Paris - France), and released on the IRCAM Forum platform. As of 2021, CLEESE is now developed and maintained by the Neuro Team FEMTO-ST Institute (CNRS/Université Bourgogne Franche-Comté) in Besançon - France.

CLEESE's development was originally funded by the European Research Council (CREAM 335536, 2014-2019, PI: JJ Aucouturier), and has since then received support from Agence Nationale de la Recherche (ANR SEPIA, AND Sounds4Coma), Fondation pour l'Audition (DASHES) and Région Bourgogne-Franche Comté (ASPECT).

If you use CLEESE in academic work, please cite it as :

Burred, JJ., Ponsot, E., Goupil, L., Liuni, M. & Aucouturier, JJ. (2019).
CLEESE: An open-source audio-transformation toolbox for data-driven experiments in speech and music cognition.
PLoS one, 14(4), e0205943.

License

CLEESE is a free, standalone Python module, distributed under an open-source MIT Licence on the FEMTO Neuro team github page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cleese_stim-2.3.4.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

cleese_stim-2.3.4-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file cleese_stim-2.3.4.tar.gz.

File metadata

  • Download URL: cleese_stim-2.3.4.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for cleese_stim-2.3.4.tar.gz
Algorithm Hash digest
SHA256 43083dc4660493d81fb63d3c780e2d8b885f80854ecd1bb57b357aebe78c66de
MD5 873ba0e4f630d1d79286af5cbd303c4b
BLAKE2b-256 401f6eec74c85ab188dbc39bd1407d770ea355b8f5a81764750a790d09a52ab1

See more details on using hashes here.

File details

Details for the file cleese_stim-2.3.4-py3-none-any.whl.

File metadata

  • Download URL: cleese_stim-2.3.4-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for cleese_stim-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dccc9586fd208aedebde6a81f724155642ce2a76c42854c1cb4e989b44b10114
MD5 e9531ae5069c1c822cb57889a5df46cd
BLAKE2b-256 9072a8da193257f6091ae1c0a5f83681ac2f1a99bc231197ba4886b184ac9372

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page