> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/sensor-setup/voice-analysis/enabling-audeering-voice-analysis-in-imotions.md).

# Enabling AudEERING Voice Analysis in iMotions

Set up the microphone and speech segment settings for audEERING voice analysis in iMotions Lab, then post-process recordings and add the notebook.

*This Help Center article is intended to help you conduct voice analysis research in iMotions. For more information regarding the signals produced in iMotions, please* [*see this article*](https://help.imotions.com/lab/analysis/voice-analysis/visualizing-and-understanding-voice-analysis-data.md)*.*

Voice analysis in iMotions is performed through integration with audEERING's "devAIce". This is carried out as a post-processing method, which means that the analysis is applied after you have collected your data.

## Study setup

First, go to Preferences → Global Settings → Audio & Video. The following section (until "Conducting Voice Analysis") takes place within the Global Settings menu.

### Choose your microphone

Under “Camera Setup”, check “Enable VideoCam Capture” and “Include Audio”. Choose your relevant video and audio sources in the dropdown menu. This could be the internal microphone of your computer, a microphone through a webcam, or an external microphone. Currently, iMotions captures audio via camera feeds and it is therefore not possible to capture audio separately.

While not essential, audEERING recommends the following features of microphones used for voice analysis:

* The microphone should be able to collect a minimum sample rate of 16 kHz with 16-bit quantization.
* Ideally, the recording is in an uncompressed format. If it is compressed, then ensure that it is at least 64 kbit/s MP3
* The frequency range of the microphone should be 50 - 10.000 Hz or wider.
* It is generally preferable to use omnidirectional microphones, and cardioid microphones are recommended in settings with more background noise.

In many cases, studies involve only one speaker. However, some study designs include a conversation between two or more people. If your study falls into the latter group, you can use audEERING’s speaker diarization functionality to differentiate between speakers. For successful speaker diarization, the level of loudness should be similar for all speakers. Alternatively, you can set up individual video and associated audio feeds per speaker, ensuring that the microphones only record the target speaker.

### Choose your Speech Segment Settings

Now, scroll down to “audEERING Audio Analysis”. Here, you have the option to change the settings that are used for defining the speech segments for voice analysis. These settings are set to the default values recommended by audEERING. These can be changed to fine-tune the sensitivity and accuracy of the voice analysis for your specific use case.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-4462d74320917809cf70505bde9e30890c035725%2F28e68bbaeb_image-QTN1EO5R.webp?alt=media)

Breaking down the meaning of the Global Settings options for Voice Analysis:

“Enabled models”: Select which analysis models you would like to apply for the voice analysis. By default, all modules except speech to text are selected.

1. The Expression model performs expression recognition on speech. This model has two output representations: dimensional outputs and expression category outputs.
2. The Prosody model computes prosodic features and provides four core measures (fundamental frequency, loudness, speaking rate, and intonation), the variation, and min/max values.
3. The Speaker Attributes model estimates the personal attributes of speakers, including their gender and age.
4. Speaker Diarization differentiates between speakers and returns Annotations as well as signals on the identity of the current speaker along with probability scores and an indicator of the next most likely speaker.
5. Speech to text/ Automated speech recognition (ASR): Provides transcription of the spoken words into text of the specified language

#### Speech Segment Duration Settings (seconds):

You can refine your speech segment characteristics with the Speech Segment Duration Settings.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-e9f9a9da0bac8c70a2c898a2cb540f3ced20e4ee%2Fb59f612b93_image-04Z6KB9D.webp?alt=media)

It is important to consider your speech segments as these are the periods analyzed by the algorithm. In other words, in contrast to other sensors, voice analysis outputs are not provided for specific time stamps (i.e. your sampling rate) per se, but are instead provided for individual speech segments. In the replay window, your speech segments are visualized under Voice Activity Detection (VAD), as shown in the image below.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b2ca50281ded3305c332c9468383a829a932a2d1%2F390ebca2c6_Signal-overview-highlight.webp?alt=media)

In the Global Settings, the speech segment settings are set to the default values recommended by audEERING. Based on their research, their voice analysis algorithm has a 97% accuracy in accurately detecting voice, but you may be able to further optimize this value based on your specific study.

**1. The minimum and maximum values represent the speech segment length settings.**

The minimum speech duration value is the minimum duration of speech that has to occur before it is detected as a speech segment to be analyzed. audEERING recommends putting the minimum value at 1 second.

Based on audEERING’s market research and conversation analysis, segments that are less than 1 second long do not provide useful information on expression scores for normal conversations. However, if your study involves conversations or responses that predominantly consist of short replies that are less than 1 second long, then audEERING recommends lowering the minimum value. We recommend you implement your pilot tests to determine the minimum duration value setting for your study.

The maximum value is the maximum speech duration to be included in a segment. audEERING recommends that this value is 10 seconds.

Going with the default values, this means that speech segments that are used for analysis always start after 1 second of speech detection (note that the first second is included in the analysis), and last for a maximum of 10 seconds. If a person is speaking continuously for more than 10 seconds, then the algorithm will immediately start a new speech segment that will be analyzed independently. The maximum value has to be greater than the minimum duration value.

Note that if a speech segment is longer than the maximum duration, but the remaining is shorter than the minimum duration, then the remaining speech will be ignored and not be included in any speech segment. If you know your speaker(s) have many short pauses, then it is recommended to keep the minimum value as small as possible to not exclude short segments.

**2. The speech segment end delay setting represents the timing of when a speech segment should end after a period of non-speech has been detected.**

The segment end delay value is the minimum length of a pause that has to occur between two speech segments, for the audEERING algorithm to detect them as separate speech segments. audEERING recommends setting the value between 200-600 ms, with the default at 250 ms.

Setting a high value (larger than 400 ms) will lead to the detection of very few but long speech segments. In this case, the expression, prosody, and speaker attribute detection will be coarse, as you will have minimal temporal resolution. In contrast, if you set the segment end delay to a low value (less than 200 ms), this will result in many short speech segments (i.e. the termination of a speech segment will happen quickly following a very short pause).

{% hint style="info" %}

* If your study involves a very dynamic conversation with quick turn changes between speakers or fast-paced speaking, then a lower-end delay segment value might give better results.
* If you see many short segments and you think that segments often split up the speech mid-sentence or mid-utterance then try using a higher value.
* If you want to redo a previous voice analysis with updated speech segment settings, then you have to re-process the recordings of the study (as explained below).
  {% endhint %}

Now that you have confirmed your settings, you can exit the Global Settings and start analyzing your study.

## Importing videos or audio files for voice analysis

It is also possible to import previously recorded videos or audio files into iMotions for voice analysis. To do this, please use the study types “[Screen-free recording > Import face recordings](https://help.imotions.com/lab/getting-started/using-the-imotions-study-builder.md#overview-of-study-types)” or [“Screen-free recording > Import voice recordings”](https://help.imotions.com/lab/getting-started/using-the-imotions-study-builder.md#overview-of-study-types). Once they have been loaded into the study, you can follow the steps below to carry out the analysis.

## Conducting Voice Analysis

Voice analysis is a post-processing method, which means that the analysis is applied after you have collected your data. To apply the voice analysis, do the following:

1. Right-click on your study —>
2. Click “Post Processing” —>
3. Click “audEERING Voice Analysis”

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9b22cd087db4b3a50ae5bfc757bab6d5743d86f1%2F9e5bab9b19_post-processing-path.webp?alt=media)

A new window will pop up that will allow you to select which respondents you would like to apply voice analysis to.

You can also choose which audio source you would like to analyze. The default is always to use the audio collected through the Respondent Camera, but you can change this manually. Note that you can perform the voice analysis as well as transcription on multiple audio sources.

When you analyze the **Scene** audio source, iMotions moves the voice analysis signals and speaker annotations by the [respondent latency](https://help.imotions.com/lab/study-setup-and-design/imotions-setup/latency-settings.md#changing-the-latency-of-sensors-per-respondent), the same offset the replay uses for the scene video, so that they stay in sync with it. Speech from before the stimulus starts is left out.

If speaker diarization is enabled, you can enter the number of expected speakers. Please note that a speaker does not equal a respondent. A respondent is a recording instance in iMotions, i.e. every time you collected data or every file you imported for post processing. If more than one person is speaking in that recording instance, you should indicate that number as number of expected speakers. In case the amount of speakers varies across recording instances/ “respondents”, please only select those “respondents” that have the same amount of speakers, start the processing, and then re-open this menu to select the other respondents with their respective amount of expected speakers.

If speech to text is enabled, you can specify the spoken language. Again, if the spoken language varies across “respondents”, please run the processing multiple times, selecting respondents with the same language. You can also choose a speech model for processing. audEERING uses [OpenAI’s Whisper model for automatic speech recognition (ASR)](https://openwhispr.com/blog/whisper-model-sizes-explained), more precisely the “Base” and “Turbo” model sizes. “Base” is installed by default as it has a smaller footprint and runs efficiently on most machines. However, OpenAI report a word error rate (WER) of 5-10%. “Turbo” requires an additional installation (prompted automatically the first time you choose to run it) as it is significantly larger. It also takes longer time to process the data, especially on lower-end PCs. OpenAI reports a WER of 2.5-3.7% and better support for technical terminology.

Click OK to start the processing.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-bc7c38d864544dcdc690814ed8327ddef4eb2a84%2Feba176f958_image-N2CCT7RP.webp?alt=media)

Now that you have applied the voice analysis to your data, you can create an analysis and start the signal processing.

## Signal Processing

While it is not necessary, we recommend that you apply the “Voice Analysis” notebook to your signal processing flow. This notebook will generate markers for voice activity and expression detection, and provide summary metrics in the user interface. We will return to these points in the following sections. If you do not apply the "Voice Analysis" notebook, you can still export the summary exports.

For more information regarding the signals and analytical options available for voice analysis, please see the following article:

[Visualizing and understanding voice analysis data](https://help.imotions.com/lab/analysis/voice-analysis/visualizing-and-understanding-voice-analysis-data.md)

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2b1c372e0099e7866aa4a5e95985c2589501990b%2F477ca6895b_R-notebook.webp?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/sensor-setup/voice-analysis/enabling-audeering-voice-analysis-in-imotions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
