Skip to main content

A Python library for speech synthesis using SAPI.SpVoice

Project description

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.

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

Bak-Bak-0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

Bak_Bak-0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file Bak-Bak-0.2.tar.gz.

File metadata

  • Download URL: Bak-Bak-0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for Bak-Bak-0.2.tar.gz
Algorithm Hash digest
SHA256 b89e76a18a6bce6d79633fffe0a4c9840926f55ff6eda06441f6bbcfe502bb51
MD5 e9f778da664fab6dea0d174b3e21e68c
BLAKE2b-256 6322493ed8de3b4f3c4e53fa1004b403248367a2fd163ba15307e67c5e0b6e75

See more details on using hashes here.

File details

Details for the file Bak_Bak-0.2-py3-none-any.whl.

File metadata

  • Download URL: Bak_Bak-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for Bak_Bak-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 264ddad89b501cd39fbc369d648428e4e5ae9fb8a24285e6c05c4688461ae261
MD5 71d6ff1394852dc957935425f14d250e
BLAKE2b-256 c630d23cee4a7e2e9a2a90de84ddf9012d6e87ddaec9621c5839b82cab957aba

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