Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Analysing the code with pylint
- name: Linting with Ruff
run: uv run --group dev ruff check

- name: Wait random time to prevent permission issues in cURL
run: sleep $((random % 5))

- name: Installing MBROLA
run: sudo /bin/bash bin/install.sh -v it4

Expand Down
6 changes: 5 additions & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,12 @@ tar -xzf "${TEMP_DIR}/${FNAME}" -C "${TEMP_DIR}" || {
exit 1
}

MBDIR="${TEMP_DIR}/MBROLA-${RELEASE}"

[[ $OSTYPE == 'darwin'* ]] && sed -i '' '70s/^/#/' $MBDIR/Misc/common.h;

# Compile and install MBROLA
cd "${TEMP_DIR}/MBROLA-${RELEASE}" || exit 1
cd $MBDIR || exit 1
if ! make; then
echo "Error: Failed to compile MBROLA." >&2
exit 1
Expand Down
15 changes: 1 addition & 14 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Requirements
=============

- Python 3.10+
- `MBROLA binary <https://github.com/numediart/MBROLA>`_ installed and available in your system path
- `MBROLA binary <https://github.com/numediart/MBROLA>`_ installed and available in your system path.
- MBROLA voices (e.g., ``it4``) installed at ``/usr/share/mbrola/<voice>/<voice>``

Installation
Expand Down Expand Up @@ -66,19 +66,6 @@ Quick Start
# Synthesize and save audio
caffe.make_sound("caffe.wav", voice="it4")

Table of Contents
==================

.. toctree::
:maxdepth: 2

user_guide/index
examples/index
contributing
license
api/index


References
===========

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/test_mbrola.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def test_add(self, mb_fix):
assert len(added) == len(mb_fix) + len(mb2)
assert len(added.pho) == len(mb_fix.pho) + len(mb2.pho)

def test_copy(self, mb_fix):
copy = mb_fix.copy()
assert copy == mb_fix
assert copy is not mb_fix


class TestPho:
def test_pho(self, mb_fix):
Expand Down
Loading