Skip to content

Commit cf0ed24

Browse files
committed
chore: rename speech box to vox box
1 parent fdd9e44 commit cf0ed24

File tree

10 files changed

+48
-48
lines changed

10 files changed

+48
-48
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Speech Box
1+
# Vox Box
22

33
A text-to-speech and speech-to-text server compatible with the OpenAI API, powered by backend support from Whisper, FunASR, Bark, and CosyVoice.
44

hack/lib/windows/init.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ Get-ChildItem -Path "$ROOT_DIR/hack/lib/windows" -File | ForEach-Object {
1313
}
1414
}
1515

16-
SpeechBox.Log.Errexit
17-
Get-SpeechBoxVersionVar
16+
VoxBox.Log.Errexit
17+
Get-VoxBoxVersionVar

hack/lib/windows/log.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
$log_level = $env:LOG_LEVEL -or "debug"
44
$log_colorful = $env:LOG_COLORFUL -or $true
55

6-
function SpeechBox.Log.Errexit {
6+
function VoxBox.Log.Errexit {
77
trap {
88
$ErrorMessage = $_.Exception.Message
99
$ErrorCode = $_.Exception.HResult
1010

11-
SpeechBox.Log.Panic -message $ErrorMessage -code $ErrorCode
11+
VoxBox.Log.Panic -message $ErrorMessage -code $ErrorCode
1212
continue
1313
}
1414
}
1515

1616
# Debug level logging.
17-
function SpeechBox.Log.Debug {
17+
function VoxBox.Log.Debug {
1818
param (
1919
[Parameter(Position = 0)]
2020
[string]$message
@@ -27,7 +27,7 @@ function SpeechBox.Log.Debug {
2727
}
2828

2929
# Info level logging.
30-
function SpeechBox.Log.Info {
30+
function VoxBox.Log.Info {
3131
param (
3232
[Parameter(Position = 0)]
3333
[string]$message
@@ -47,7 +47,7 @@ function SpeechBox.Log.Info {
4747
}
4848

4949
# Warn level logging.
50-
function SpeechBox.Log.Warn {
50+
function VoxBox.Log.Warn {
5151
param (
5252
[Parameter(Position = 0)]
5353
[string]$message
@@ -64,7 +64,7 @@ function SpeechBox.Log.Warn {
6464
}
6565

6666
# Error level logging, log an error but keep going, don't dump the stack or exit.
67-
function SpeechBox.Log.Error {
67+
function VoxBox.Log.Error {
6868
param (
6969
[Parameter(Position = 0)]
7070
[string]$message
@@ -81,7 +81,7 @@ function SpeechBox.Log.Error {
8181
}
8282

8383
# Fatal level logging, log an error but exit with 1, don't dump the stack or exit.
84-
function SpeechBox.Log.Fatal {
84+
function VoxBox.Log.Fatal {
8585
param (
8686
[Parameter(Position = 0)]
8787
[string]$message
@@ -99,7 +99,7 @@ function SpeechBox.Log.Fatal {
9999
}
100100

101101
# Panic level logging, dump the error stack and exit.
102-
function SpeechBox.Log.Panic {
102+
function VoxBox.Log.Panic {
103103
param (
104104
[string]$message,
105105
[int]$code = 1

hack/lib/windows/version.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define the function to get version variables
2-
function Get-SpeechBoxVersionVar {
2+
function Get-VoxBoxVersionVar {
33
# Get the build date
44
$BUILD_DATE = Get-Date -Format 'yyyy-MM-ddTHH:mm:ssZ'
55

hack/windows/build.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ function Build {
1313
Ignore-Thirdparty-InvalidFile
1414
poetry build
1515
if ($LASTEXITCODE -ne 0) {
16-
SpeechBox.Log.Fatal "failed to run poetry build."
16+
VoxBox.Log.Fatal "failed to run poetry build."
1717
}
1818

1919
$whlFiles = Get-ChildItem -Path $distDir -Filter "*.whl" -File
2020
if ($whlFiles.Count -eq 0) {
21-
SpeechBox.Log.Fatal "no wheel files found in $distDir"
21+
VoxBox.Log.Fatal "no wheel files found in $distDir"
2222
}
2323

2424
foreach ($whlFile in $whlFiles) {
@@ -28,7 +28,7 @@ function Build {
2828
$newFilePath = Join-Path -Path $distDir -ChildPath $newName
2929
Remove-Item -Path $newFilePath -Force -ErrorAction SilentlyContinue
3030
Rename-Item -Path $whlFile.FullName -NewName $newFilePath -Force
31-
SpeechBox.Log.Info "renamed $orginalName to $newName"
31+
VoxBox.Log.Info "renamed $orginalName to $newName"
3232
}
3333
}
3434

@@ -42,8 +42,8 @@ function Set-Version {
4242
$gitCommit = if ($null -ne $global:GIT_COMMIT) { $global:GIT_COMMIT } else { "HEAD" }
4343
$gitCommitShort = $gitCommit.Substring(0, [Math]::Min(7, $gitCommit.Length))
4444

45-
SpeechBox.Log.Info "setting version to $version"
46-
SpeechBox.Log.Info "setting git commit to $gitCommitShort"
45+
VoxBox.Log.Info "setting version to $version"
46+
VoxBox.Log.Info "setting git commit to $gitCommitShort"
4747

4848
# Replace the __version__ variable in the __init__.py file
4949
$fileContent = Get-Content -Path $versionFile
@@ -60,21 +60,21 @@ function Restore-Version-File {
6060

6161
git checkout -- $versionFile
6262
if ($LASTEXITCODE -ne 0) {
63-
SpeechBox.Log.Fatal "failed restore version file."
63+
VoxBox.Log.Fatal "failed restore version file."
6464
}
6565
}
6666

6767
#
6868
# main
6969
#
7070

71-
SpeechBox.Log.Info "+++ BUILD +++"
71+
VoxBox.Log.Info "+++ BUILD +++"
7272
try {
7373
Install-Dependency
7474
Set-Version
7575
Build
7676
Restore-Version-File
7777
} catch {
78-
SpeechBox.Log.Fatal "failed to build: $($_.Exception.Message)"
78+
VoxBox.Log.Fatal "failed to build: $($_.Exception.Message)"
7979
}
80-
SpeechBox.Log.Info "--- BUILD ---"
80+
VoxBox.Log.Info "--- BUILD ---"

hack/windows/ci.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ function Invoke-CI {
3030
# main
3131
#
3232

33-
SpeechBox.Log.Info "+++ CI +++"
33+
VoxBox.Log.Info "+++ CI +++"
3434
try {
3535
Invoke-CI $args
3636
} catch {
37-
SpeechBox.Log.Fatal "failed run ci: $($_.Exception.Message)"
37+
VoxBox.Log.Fatal "failed run ci: $($_.Exception.Message)"
3838
}
39-
SpeechBox.Log.Info "--- CI ---"
39+
VoxBox.Log.Info "--- CI ---"

hack/windows/install.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ function Install-Dependency {
1414

1515
pip install poetry==1.8.3 pre-commit==4.0.1
1616
if ($LASTEXITCODE -ne 0) {
17-
SpeechBox.Log.Fatal "failed to install poetry."
17+
VoxBox.Log.Fatal "failed to install poetry."
1818
}
1919

2020
poetry install
2121
if ($LASTEXITCODE -ne 0) {
22-
SpeechBox.Log.Fatal "failed run poetry install."
22+
VoxBox.Log.Fatal "failed run poetry install."
2323
}
2424

2525
poetry run pre-commit install
2626
if ($LASTEXITCODE -ne 0) {
27-
SpeechBox.Log.Fatal "failed run pre-commint install."
27+
VoxBox.Log.Fatal "failed run pre-commint install."
2828
}
2929
}
3030

3131
#
3232
# main
3333
#
3434

35-
SpeechBox.Log.Info "+++ DEPENDENCIES +++"
35+
VoxBox.Log.Info "+++ DEPENDENCIES +++"
3636
try {
3737
Install-Dependency
3838
}
3939
catch {
40-
SpeechBox.Log.Fatal "failed to download dependencies: $($_.Exception.Message)"
40+
VoxBox.Log.Fatal "failed to download dependencies: $($_.Exception.Message)"
4141
}
42-
SpeechBox.Log.Info "-- DEPENDENCIES ---"
42+
VoxBox.Log.Info "-- DEPENDENCIES ---"

hack/windows/lint.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,46 +18,46 @@ function Lint {
1818
[string]$path
1919
)
2020

21-
SpeechBox.Log.Info "linting $path"
21+
VoxBox.Log.Info "linting $path"
2222

2323
$result = Invoke-ScriptAnalyzer -Path $ROOT_DIR -Recurse -EnableExit -ExcludeRule PSUseBOMForUnicodeEncodedFile,PSAvoidUsingPlainTextForPassword,PSAvoidUsingInvokeExpression, PSReviewUnusedParameter, PSUseApprovedVerbs, PSAvoidGlobalVars, PSUseShouldProcessForStateChangingFunctions, PSAvoidUsingWriteHost
2424
$result | Format-Table -AutoSize
2525
if ($result.Length -ne 0) {
26-
SpeechBox.Log.Fatal "failed with Invoke-ScriptAnalyzer lint."
26+
VoxBox.Log.Fatal "failed with Invoke-ScriptAnalyzer lint."
2727
}
2828

2929
poetry run pre-commit run flake8 --all-files
3030
if ($LASTEXITCODE -ne 0) {
31-
SpeechBox.Log.Fatal "failed with flake8 lint."
31+
VoxBox.Log.Fatal "failed with flake8 lint."
3232
}
3333
poetry run pre-commit run black --all-files
3434
if ($LASTEXITCODE -ne 0) {
35-
SpeechBox.Log.Fatal "failed with black lint."
35+
VoxBox.Log.Fatal "failed with black lint."
3636
}
3737
poetry run pre-commit run check-yaml --all-files
3838
if ($LASTEXITCODE -ne 0) {
39-
SpeechBox.Log.Fatal "failed with check-yaml lint."
39+
VoxBox.Log.Fatal "failed with check-yaml lint."
4040
}
4141
poetry run pre-commit run debug-statements --all-files
4242
if ($LASTEXITCODE -ne 0) {
43-
SpeechBox.Log.Fatal "failed with debug-statements lint."
43+
VoxBox.Log.Fatal "failed with debug-statements lint."
4444
}
4545
poetry run pre-commit run end-of-file-fixer --all-files
4646
if ($LASTEXITCODE -ne 0) {
47-
SpeechBox.Log.Fatal "failed with end-of-file-fixer lint."
47+
VoxBox.Log.Fatal "failed with end-of-file-fixer lint."
4848
}
4949
}
5050

5151
#
5252
# main
5353
#
5454

55-
SpeechBox.Log.Info "+++ LINT +++"
55+
VoxBox.Log.Info "+++ LINT +++"
5656
try {
5757
Get-PSScriptAnalyzer
5858
Lint "vox_box"
5959
}
6060
catch {
61-
SpeechBox.Log.Fatal "failed to lint: $($_.Exception.Message)"
61+
VoxBox.Log.Fatal "failed to lint: $($_.Exception.Message)"
6262
}
63-
SpeechBox.Log.Info "--- LINT ---"
63+
VoxBox.Log.Info "--- LINT ---"

hack/windows/publish-pypi.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ function Publish-Pypi {
1111
poetry run twine check dist/*.whl
1212
poetry run twine upload dist/*.whl
1313
if ($LASTEXITCODE -ne 0) {
14-
SpeechBox.Log.Fatal "twine upload failed."
14+
VoxBox.Log.Fatal "twine upload failed."
1515
}
1616
}
1717

1818
#
1919
# main
2020
#
2121

22-
SpeechBox.Log.Info "+++ Publish Pypi +++"
22+
VoxBox.Log.Info "+++ Publish Pypi +++"
2323
try {
2424
Publish-Pypi
2525
}
2626
catch {
27-
SpeechBox.Log.Fatal "failed to publish Pypi: $($_.Exception.Message)"
27+
VoxBox.Log.Fatal "failed to publish Pypi: $($_.Exception.Message)"
2828
}
29-
SpeechBox.Log.Info "--- Publish Pypi ---"
29+
VoxBox.Log.Info "--- Publish Pypi ---"

hack/windows/test.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ $ROOT_DIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent | Split-
99
function Test {
1010
poetry run pytest
1111
if ($LASTEXITCODE -ne 0) {
12-
SpeechBox.Log.Fatal "failed to run poetry run pytest."
12+
VoxBox.Log.Fatal "failed to run poetry run pytest."
1313
}
1414
}
1515

1616
#
1717
# main
1818
#
1919

20-
SpeechBox.Log.Info "+++ TEST +++"
20+
VoxBox.Log.Info "+++ TEST +++"
2121
try {
2222
Test
2323
} catch {
24-
SpeechBox.Log.Fatal "failed to test: $($_.Exception.Message)"
24+
VoxBox.Log.Fatal "failed to test: $($_.Exception.Message)"
2525
}
26-
SpeechBox.Log.Info "--- TEST ---"
26+
VoxBox.Log.Info "--- TEST ---"

0 commit comments

Comments
 (0)