---
name: "voice_set_frequency"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/voice_set_frequency/3alleg4"
---

# voice\_set\_frequency(3alleg4)

Sets the pitch of the voice. Allegro game programming library.

## NAME

voice\_set\_frequency - Sets the pitch of the voice. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void voice\_set\_frequency(int voice, int frequency);**

## DESCRIPTION

Sets the pitch of the voice, in Hz.

## SEE ALSO

**voice\_get\_frequency**(3alleg4), **voice\_sweep\_frequency**(3alleg4)
