Skip to main content

Bak-Bak

Python library for speech synthesis using SAPI.SpVoice, which is the Microsoft Speech API that allows Windows applications to use voice synthesis and recognition functionality. With Bak-Bak, you can easily add text-to-speech capabilities to your Python applications on Windows.

Installation

To install Bak-Bak, use pip:

pip install Bak-Bak

Bak-Bak is a Python library for speech synthesis using SAPI.SpVoice, which is the Microsoft Speech API that allows Windows applications to use voice synthesis and recognition functionality. With Bak-Bak, you can easily add text-to-speech capabilities to your Python applications on Windows.

Features:

  • Simple API for synthesizing speech from text
  • Supports multiple voices
  • Ability to save synthesized speech as a WAV file

Usage

To use Bak-Bak, simply import the speak function from the bakbak module and call it with the message you want to speak:

import bakbak

bakbak.speak("Hello, world!")

By default, Bak-Bak uses the first available voice on your system. You can specify a different voice using the speaker_number parameter. You can also use the speak function to save the synthesized speech as a WAV file:

import bakbak

Use the third voice and save the speech as a file

bakbak.speak("Hello, world!", speaker_number=2, filename="hello.wav")

Bak-Bak also provides a get_voices function that returns a list of available voices on your system:

import bakbak

voices = bakbak.get_voices()
for i, voice in enumerate(voices):
    print(f"{i + 1}. {voice['name']}")

Requirements

  • Python 3.6 or higher
  • pypiwin32 package

License

Bak-Bak is released under the MIT License. See the LICENSE file for more details.

Metadata

Release files for Bak-Bak 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Bak-Bak 0.2
File Size Uploaded
Bak-Bak-0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Bak-Bak 0.2
File Interpreter ABI Platform
Bak_Bak-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / Bak-Bak-0.2.tar.gz

Download URL Bak-Bak-0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b89e76a18a6bce6d79633fffe0a4c9840926f55ff6eda06441f6bbcfe502bb51
BLAKE2b-256 checksum
How to use checksums
6322493ed8de3b4f3c4e53fa1004b403248367a2fd163ba15307e67c5e0b6e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / Bak_Bak-0.2-py3-none-any.whl

Download URL Bak_Bak-0.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
264ddad89b501cd39fbc369d648428e4e5ae9fb8a24285e6c05c4688461ae261
BLAKE2b-256 checksum
How to use checksums
c630d23cee4a7e2e9a2a90de84ddf9012d6e87ddaec9621c5839b82cab957aba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page