Skip to content

Commit

Permalink
fix: move script to package
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik committed Feb 22, 2023
1 parent ee394de commit e750dd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
File renamed without changes.
7 changes: 3 additions & 4 deletions entrainment_metrics/interpausal_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import audiofile
import opensmile
import pandas as pd
import parselmouth
from parselmouth.praat import run_file


class InterPausalUnit:
Expand Down Expand Up @@ -131,13 +131,12 @@ def _calculate_praat_features(
praat_script_absolute = os.path.abspath(
os.path.join(
os.path.dirname(__file__),
'..',
'scripts/extractStandardAcoustics.praat',
'extractStandardAcoustics.praat',
)
)
f = io.StringIO()
with redirect_stdout(f):
parselmouth.praat.run_file(
run_file(
praat_script_absolute,
audio_file_absolute,
str(self.start),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "entrainment-metrics"
version = "0.1.1"
version = "0.1.2"
description = "Measure acoustic-prosodic entrainment in speech"
authors = ["Erik Ernst"]

Expand Down

0 comments on commit e750dd2

Please sign in to comment.