diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..6725ffb --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,244 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + +env: + GOLANG_VERSION: '1.24.6' + app: live2text + sysroot: "${{ github.workspace }}/sysroot" + +concurrency: + cancel-in-progress: true + group: ${{ github.ref }} + +jobs: + macos: + runs-on: macos-latest + strategy: + fail-fast: false + matrix: + arch: + - amd64 + - arm64 + include: + - arch: amd64 + target: x86_64-apple-darwin + runner_arch: X64 + - arch: arm64 + target: aarch64-apple-darwin + runner_arch: ARM64 + env: + suffix: macos-${{ matrix.arch }} + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Setup Go environment + uses: actions/setup-go@v5 + with: + go-version: "^${{ env.GOLANG_VERSION }}" + cache: 'true' + + - name: Restore PortAudio build + uses: actions/cache@v4 + id: cache-portaudio + with: + path: | + ${{ env.sysroot }}/lib/libportaudio.a + ${{ env.sysroot }}/lib/libportaudio.la + ${{ env.sysroot }}/lib/pkgconfig/portaudio-2.0.pc + ${{ env.sysroot }}/include/portaudio.h + key: 'portaudio-${{ matrix.target }}' + + - name: Build PortAudio from source + if: steps.cache-portaudio.outputs.cache-hit != 'true' + run: | + mkdir -p portaudio + mkdir -p "${{ env.sysroot }}" + curl -sSLf "https://files.portaudio.com/archives/pa_snapshot.tgz" | tar -xzvf - --strip-components=1 -C portaudio + ( cd portaudio && ./configure --host=${{ matrix.target }} --disable-shared --enable-static --prefix="${{ env.sysroot }}" ) + make -C portaudio -j"$(sysctl -n hw.logicalcpu)" + make -C portaudio install + strip -S "${{ env.sysroot }}/lib/libportaudio.a" + file "${{ env.sysroot }}/lib/libportaudio.a" + + - name: Upload Test Logs + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: test-logs-${{ env.suffix }} + retention-days: 7 + path: | + *.log + portaudio/*.log + + - name: Build App + run: | + version=$(git describe --tags --exact-match 2>/dev/null || git rev-parse --short HEAD) + build_time="$(date -u +%Y-%m-%dT%H:%M:%SZ)" + go_version="$(go version | sed 's/go version //')" + override="$(cat </dev/null || git rev-parse --short HEAD) + build_time="$(date -u +%Y-%m-%dT%H:%M:%SZ)" + go_version="$(go version | sed 's/go version //')" + override="$(cat < 0 { + cmd = args[0] } - switch args[0] { + switch cmd { case "install": return runInstall(ctx, args[1:]) case "uninstall": return runUninstall(ctx, args[1:]) case "serve": return runServe(ctx, args[1:]) + case "version": + return runVersion(ctx, args[1:]) default: - return fmt.Errorf("unknown command: %s. known commands: install, uninstall, serve", args[0]) + return fmt.Errorf("unknown command: %s. known commands: install, uninstall, serve, version", cmd) } } @@ -190,6 +193,14 @@ func runServe(ctx context.Context, args []string) error { return nil } +func runVersion(_ context.Context, _ []string) error { + _, _ = fmt.Fprintf(os.Stdout, "Version: %s\n", env.Version) + _, _ = fmt.Fprintf(os.Stdout, "BuildTime: %s\n", env.BuildTime) + _, _ = fmt.Fprintf(os.Stdout, "GoVersion: %s\n", env.GoVersion) + + return nil +} + func newServices( ctx context.Context, sl *slog.Logger, diff --git a/go.mod b/go.mod index 997f5fc..254535d 100644 --- a/go.mod +++ b/go.mod @@ -1,26 +1,26 @@ -module live2text +module github.com/roboloop/live2text -go 1.24 +go 1.24.6 require ( cloud.google.com/go/speech v1.28.0 - github.com/VictoriaMetrics/metrics v1.38.0 + github.com/VictoriaMetrics/metrics v1.39.1 github.com/gojuno/minimock/v3 v3.4.5 github.com/gordonklaus/portaudio v0.0.0-20250206071425-98a94950218b github.com/lmittmann/tint v1.1.2 github.com/stretchr/testify v1.10.0 github.com/youpy/go-wav v0.3.2 golang.org/x/sync v0.16.0 - golang.org/x/term v0.33.0 + golang.org/x/term v0.34.0 google.golang.org/grpc v1.74.2 - google.golang.org/protobuf v1.36.6 + google.golang.org/protobuf v1.36.7 ) require ( cloud.google.com/go v0.121.4 // indirect - cloud.google.com/go/auth v0.16.3 // indirect + cloud.google.com/go/auth v0.16.4 // indirect cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect - cloud.google.com/go/compute/metadata v0.7.0 // indirect + cloud.google.com/go/compute/metadata v0.8.0 // indirect cloud.google.com/go/longrunning v0.6.7 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect @@ -40,14 +40,14 @@ require ( go.opentelemetry.io/otel v1.37.0 // indirect go.opentelemetry.io/otel/metric v1.37.0 // indirect go.opentelemetry.io/otel/trace v1.37.0 // indirect - golang.org/x/crypto v0.40.0 // indirect - golang.org/x/net v0.42.0 // indirect + golang.org/x/crypto v0.41.0 // indirect + golang.org/x/net v0.43.0 // indirect golang.org/x/oauth2 v0.30.0 // indirect - golang.org/x/sys v0.34.0 // indirect - golang.org/x/text v0.27.0 // indirect + golang.org/x/sys v0.35.0 // indirect + golang.org/x/text v0.28.0 // indirect golang.org/x/time v0.12.0 // indirect - google.golang.org/api v0.243.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20250728155136-f173205681a0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0 // indirect + google.golang.org/api v0.246.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250804133106-a7a43d27e69b // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index b8303c1..bf85412 100644 --- a/go.sum +++ b/go.sum @@ -1,21 +1,17 @@ -cloud.google.com/go v0.120.0 h1:wc6bgG9DHyKqF5/vQvX1CiZrtHnxJjBlKUyF9nP6meA= -cloud.google.com/go v0.120.0/go.mod h1:/beW32s8/pGRuj4IILWQNd4uuebeT4dkOhKmkfit64Q= cloud.google.com/go v0.121.4 h1:cVvUiY0sX0xwyxPwdSU2KsF9knOVmtRyAMt8xou0iTs= cloud.google.com/go v0.121.4/go.mod h1:XEBchUiHFJbz4lKBZwYBDHV/rSyfFktk737TLDU089s= -cloud.google.com/go/auth v0.16.2 h1:QvBAGFPLrDeoiNjyfVunhQ10HKNYuOwZ5noee0M5df4= -cloud.google.com/go/auth v0.16.2/go.mod h1:sRBas2Y1fB1vZTdurouM0AzuYQBMZinrUYL8EufhtEA= -cloud.google.com/go/auth v0.16.3 h1:kabzoQ9/bobUmnseYnBO6qQG7q4a/CffFRlJSxv2wCc= -cloud.google.com/go/auth v0.16.3/go.mod h1:NucRGjaXfzP1ltpcQ7On/VTZ0H4kWB5Jy+Y9Dnm76fA= +cloud.google.com/go/auth v0.16.4 h1:fXOAIQmkApVvcIn7Pc2+5J8QTMVbUGLscnSVNl11su8= +cloud.google.com/go/auth v0.16.4/go.mod h1:j10ncYwjX/g3cdX7GpEzsdM+d+ZNsXAbb6qXA7p1Y5M= cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= -cloud.google.com/go/compute/metadata v0.7.0 h1:PBWF+iiAerVNe8UCHxdOt6eHLVc3ydFeOCw78U8ytSU= -cloud.google.com/go/compute/metadata v0.7.0/go.mod h1:j5MvL9PprKL39t166CoB1uVHfQMs4tFQZZcKwksXUjo= +cloud.google.com/go/compute/metadata v0.8.0 h1:HxMRIbao8w17ZX6wBnjhcDkW6lTFpgcaobyVfZWqRLA= +cloud.google.com/go/compute/metadata v0.8.0/go.mod h1:sYOGTp851OV9bOFJ9CH7elVvyzopvWQFNNghtDQ/Biw= cloud.google.com/go/longrunning v0.6.7 h1:IGtfDWHhQCgCjwQjV9iiLnUta9LBCo8R9QmAFsS/PrE= cloud.google.com/go/longrunning v0.6.7/go.mod h1:EAFV3IZAKmM56TyiE6VAP3VoTzhZzySwI/YI1s/nRsY= cloud.google.com/go/speech v1.28.0 h1:9AuiAxDTmh/aeREtw+/0e7aI27T5QN4fK5lhssc9MxA= cloud.google.com/go/speech v1.28.0/go.mod h1:hJf6oa+1rzCW/CeDE/qCXedV20B2TXEUje5iaGwW+JI= -github.com/VictoriaMetrics/metrics v1.38.0 h1:1d0dRgVH8Nnu8dKMfisKefPC3q7gqf3/odyO0quAvyA= -github.com/VictoriaMetrics/metrics v1.38.0/go.mod h1:r7hveu6xMdUACXvB8TYdAj8WEsKzWB0EkpJN+RDtOf8= +github.com/VictoriaMetrics/metrics v1.39.1 h1:AT7jz7oSpAK9phDl5O5Tmy06nXnnzALwqVnf4ros3Ow= +github.com/VictoriaMetrics/metrics v1.39.1/go.mod h1:XE4uudAAIRaJE614Tl5HMrtoEU6+GDZO4QTnNSsZRuA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -39,8 +35,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.3.6 h1:GW/XbdyBFQ8Qe+YAmFU9uHLo7OnF5tL52HFAgMmyrf4= github.com/googleapis/enterprise-certificate-proxy v0.3.6/go.mod h1:MkHOF77EYAE7qfSuSS9PU6g4Nt4e11cnsDUowfwewLA= -github.com/googleapis/gax-go/v2 v2.14.2 h1:eBLnkZ9635krYIPD+ag1USrOAI0Nr0QYF3+/3GqO0k0= -github.com/googleapis/gax-go/v2 v2.14.2/go.mod h1:ON64QhlJkhVtSqp4v1uaK92VyZ2gmvDQsweuyLV+8+w= github.com/googleapis/gax-go/v2 v2.15.0 h1:SyjDc1mGgZU5LncH8gimWo9lW1DtIfPibOG81vgd/bo= github.com/googleapis/gax-go/v2 v2.15.0/go.mod h1:zVVkkxAQHa1RQpg9z2AUCMnKhi0Qld9rcmyfL1OZhoc= github.com/gordonklaus/portaudio v0.0.0-20250206071425-98a94950218b h1:WEuQWBxelOGHA6z9lABqaMLMrfwVyMdN3UgRLT+YUPo= @@ -74,65 +68,51 @@ github.com/zaf/g711 v1.4.0 h1:XZYkjjiAg9QTBnHqEg37m2I9q3IIDv5JRYXs2N8ma7c= github.com/zaf/g711 v1.4.0/go.mod h1:eCDXt3dSp/kYYAoooba7ukD/Q75jvAaS4WOMr0l1Roo= go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 h1:q4XOmH/0opmeuJtPsbFNivyl7bCt7yRBbeEm2sC/XtQ= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0/go.mod h1:snMWehoOh2wsEwnvvwtDyFCxVeDAODenXHtn5vzrKjo= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0 h1:rbRJ8BBoVMsQShESYZ0FkvcITu8X8QNwJogcLUmDNNw= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0/go.mod h1:ru6KHrNtNHxM4nD/vd6QrLVWgKhxPYgblq4VAtNawTQ= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 h1:Hf9xI/XLML9ElpiHVDNwvqI0hIFlzV8dgIr35kV1kRU= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0/go.mod h1:NfchwuyNoMcZ5MLHwPrODwUF1HWCXWrL31s8gSAdIKY= -go.opentelemetry.io/otel v1.36.0 h1:UumtzIklRBY6cI/lllNZlALOF5nNIzJVb16APdvgTXg= -go.opentelemetry.io/otel v1.36.0/go.mod h1:/TcFMXYjyRNh8khOAO9ybYkqaDBb/70aVwkNML4pP8E= go.opentelemetry.io/otel v1.37.0 h1:9zhNfelUvx0KBfu/gb+ZgeAfAgtWrfHJZcAqFC228wQ= go.opentelemetry.io/otel v1.37.0/go.mod h1:ehE/umFRLnuLa/vSccNq9oS1ErUlkkK71gMcN34UG8I= -go.opentelemetry.io/otel/metric v1.36.0 h1:MoWPKVhQvJ+eeXWHFBOPoBOi20jh6Iq2CcCREuTYufE= -go.opentelemetry.io/otel/metric v1.36.0/go.mod h1:zC7Ks+yeyJt4xig9DEw9kuUFe5C3zLbVjV2PzT6qzbs= go.opentelemetry.io/otel/metric v1.37.0 h1:mvwbQS5m0tbmqML4NqK+e3aDiO02vsf/WgbsdpcPoZE= go.opentelemetry.io/otel/metric v1.37.0/go.mod h1:04wGrZurHYKOc+RKeye86GwKiTb9FKm1WHtO+4EVr2E= -go.opentelemetry.io/otel/sdk v1.36.0 h1:b6SYIuLRs88ztox4EyrvRti80uXIFy+Sqzoh9kFULbs= -go.opentelemetry.io/otel/sdk v1.36.0/go.mod h1:+lC+mTgD+MUWfjJubi2vvXWcVxyr9rmlshZni72pXeY= go.opentelemetry.io/otel/sdk v1.37.0 h1:ItB0QUqnjesGRvNcmAcU0LyvkVyGJ2xftD29bWdDvKI= -go.opentelemetry.io/otel/sdk/metric v1.36.0 h1:r0ntwwGosWGaa0CrSt8cuNuTcccMXERFwHX4dThiPis= -go.opentelemetry.io/otel/sdk/metric v1.36.0/go.mod h1:qTNOhFDfKRwX0yXOqJYegL5WRaW376QbB7P4Pb0qva4= +go.opentelemetry.io/otel/sdk v1.37.0/go.mod h1:VredYzxUvuo2q3WRcDnKDjbdvmO0sCzOvVAiY+yUkAg= go.opentelemetry.io/otel/sdk/metric v1.37.0 h1:90lI228XrB9jCMuSdA0673aubgRobVZFhbjxHHspCPc= -go.opentelemetry.io/otel/trace v1.36.0 h1:ahxWNuqZjpdiFAyrIoQ4GIiAIhxAunQR6MUoKrsNd4w= -go.opentelemetry.io/otel/trace v1.36.0/go.mod h1:gQ+OnDZzrybY4k4seLzPAWNwVBBVlF2szhehOBB/tGA= +go.opentelemetry.io/otel/sdk/metric v1.37.0/go.mod h1:cNen4ZWfiD37l5NhS+Keb5RXVWZWpRE+9WyVCpbo5ps= go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4= go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0= -golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM= -golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY= -golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs= -golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= +golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= +golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= +golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= -golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA= -golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/term v0.33.0 h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg= -golang.org/x/term v0.33.0/go.mod h1:s18+ql9tYWp1IfpV9DmCtQDDSRBUjKaw9M1eAv5UeF0= -golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4= -golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU= +golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= +golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4= +golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw= +golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= +golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.237.0 h1:MP7XVsGZesOsx3Q8WVa4sUdbrsTvDSOERd3Vh4xj/wc= -google.golang.org/api v0.237.0/go.mod h1:cOVEm2TpdAGHL2z+UwyS+kmlGr3bVWQQ6sYEqkKje50= -google.golang.org/api v0.243.0 h1:sw+ESIJ4BVnlJcWu9S+p2Z6Qq1PjG77T8IJ1xtp4jZQ= -google.golang.org/api v0.243.0/go.mod h1:GE4QtYfaybx1KmeHMdBnNnyLzBZCVihGBXAmJu/uUr8= -google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 h1:1tXaIXCracvtsRxSBsYDiSBN0cuJvM7QYW+MrpIRY78= -google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2/go.mod h1:49MsLSx0oWMOZqcpB3uL8ZOkAh1+TndpJ8ONoCBWiZk= -google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 h1:oWVWY3NzT7KJppx2UKhKmzPq4SRe0LdCijVRwvGeikY= -google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822/go.mod h1:h3c4v36UTKzUiuaOKQ6gr3S+0hovBtUrXzTG/i3+XEc= -google.golang.org/genproto/googleapis/api v0.0.0-20250728155136-f173205681a0 h1:0UOBWO4dC+e51ui0NFKSPbkHHiQ4TmrEfEZMLDyRmY8= -google.golang.org/genproto/googleapis/api v0.0.0-20250728155136-f173205681a0/go.mod h1:8ytArBbtOy2xfht+y2fqKd5DRDJRUQhqbyEnQ4bDChs= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0 h1:MAKi5q709QWfnkkpNQ0M12hYJ1+e8qYVDyowc4U1XZM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= +google.golang.org/api v0.246.0 h1:H0ODDs5PnMZVZAEtdLMn2Ul2eQi7QNjqM2DIFp8TlTM= +google.golang.org/api v0.246.0/go.mod h1:dMVhVcylamkirHdzEBAIQWUCgqY885ivNeZYd7VAVr8= +google.golang.org/genproto v0.0.0-20250603155806-513f23925822 h1:rHWScKit0gvAPuOnu87KpaYtjK5zBMLcULh7gxkCXu4= +google.golang.org/genproto v0.0.0-20250603155806-513f23925822/go.mod h1:HubltRL7rMh0LfnQPkMH4NPDFEWp0jw3vixw7jEM53s= +google.golang.org/genproto/googleapis/api v0.0.0-20250804133106-a7a43d27e69b h1:ULiyYQ0FdsJhwwZUwbaXpZF5yUE3h+RA+gxvBu37ucc= +google.golang.org/genproto/googleapis/api v0.0.0-20250804133106-a7a43d27e69b/go.mod h1:oDOGiMSXHL4sDTJvFvIB9nRQCGdLP1o/iVaqQK8zB+M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b h1:zPKJod4w6F1+nRGDI9ubnXYhU9NSWoFAijkHkUXeTK8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.74.2 h1:WoosgB65DlWVC9FqI82dGsZhWFNBSLjQ84bjROOpMu4= google.golang.org/grpc v1.74.2/go.mod h1:CtQ+BGjaAIXHs/5YS3i473GqwBBa1zGQNevxdeBEXrM= -google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= -google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= +google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/internal/api/btt/common_test.go b/internal/api/btt/common_test.go index 34b1c97..0404c3a 100644 --- a/internal/api/btt/common_test.go +++ b/internal/api/btt/common_test.go @@ -10,9 +10,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - bttapi "live2text/internal/api/btt" - "live2text/internal/services" - "live2text/internal/utils/logger" + bttapi "github.com/roboloop/live2text/internal/api/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/utils/logger" ) func setupServer( diff --git a/internal/api/btt/floating_page_test.go b/internal/api/btt/floating_page_test.go index 472087a..710d254 100644 --- a/internal/api/btt/floating_page_test.go +++ b/internal/api/btt/floating_page_test.go @@ -6,8 +6,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestFloatingPage(t *testing.T) { diff --git a/internal/api/btt/health_test.go b/internal/api/btt/health_test.go index 6dff7da..087c855 100644 --- a/internal/api/btt/health_test.go +++ b/internal/api/btt/health_test.go @@ -6,8 +6,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestHealth(t *testing.T) { diff --git a/internal/api/btt/is_running.go b/internal/api/btt/is_running.go index de91659..5464fe2 100644 --- a/internal/api/btt/is_running.go +++ b/internal/api/btt/is_running.go @@ -3,7 +3,7 @@ package btt import ( "net/http" - "live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/json" ) func (s *Server) IsRunning(w http.ResponseWriter, r *http.Request) { diff --git a/internal/api/btt/is_running_test.go b/internal/api/btt/is_running_test.go index 784aae1..d2e0ab2 100644 --- a/internal/api/btt/is_running_test.go +++ b/internal/api/btt/is_running_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestIsRunning(t *testing.T) { diff --git a/internal/api/btt/load_devices.go b/internal/api/btt/load_devices.go index 7713cb0..cb51246 100644 --- a/internal/api/btt/load_devices.go +++ b/internal/api/btt/load_devices.go @@ -3,7 +3,7 @@ package btt import ( "net/http" - "live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/json" ) func (s *Server) LoadDevices(w http.ResponseWriter, r *http.Request) { diff --git a/internal/api/btt/load_devices_test.go b/internal/api/btt/load_devices_test.go index fc8d70b..dac563e 100644 --- a/internal/api/btt/load_devices_test.go +++ b/internal/api/btt/load_devices_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestLoadDevices(t *testing.T) { diff --git a/internal/api/btt/select_clipboard.go b/internal/api/btt/select_clipboard.go index b446a3e..dbaf0c4 100644 --- a/internal/api/btt/select_clipboard.go +++ b/internal/api/btt/select_clipboard.go @@ -4,9 +4,9 @@ package btt import ( "net/http" - "live2text/internal/api/json" - "live2text/internal/api/validation" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/services/btt" ) type selectClipboardRequest struct { diff --git a/internal/api/btt/select_clipboard_test.go b/internal/api/btt/select_clipboard_test.go index 71d4724..3de4af8 100644 --- a/internal/api/btt/select_clipboard_test.go +++ b/internal/api/btt/select_clipboard_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectClipboard(t *testing.T) { diff --git a/internal/api/btt/select_device.go b/internal/api/btt/select_device.go index fd3c035..ad043f1 100644 --- a/internal/api/btt/select_device.go +++ b/internal/api/btt/select_device.go @@ -5,9 +5,9 @@ import ( "net/http" "slices" - "live2text/internal/api/json" - "live2text/internal/api/validation" - "live2text/internal/services" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/services" ) type selectDeviceRequest struct { diff --git a/internal/api/btt/select_device_test.go b/internal/api/btt/select_device_test.go index 9459ae8..21c26f9 100644 --- a/internal/api/btt/select_device_test.go +++ b/internal/api/btt/select_device_test.go @@ -7,9 +7,9 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/audio" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectDevice(t *testing.T) { diff --git a/internal/api/btt/select_floating.go b/internal/api/btt/select_floating.go index 51df18e..cb09298 100644 --- a/internal/api/btt/select_floating.go +++ b/internal/api/btt/select_floating.go @@ -4,9 +4,9 @@ package btt import ( "net/http" - "live2text/internal/api/json" - "live2text/internal/api/validation" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/services/btt" ) type selectFloatingRequest struct { diff --git a/internal/api/btt/select_floating_test.go b/internal/api/btt/select_floating_test.go index 3a326f3..dbe53aa 100644 --- a/internal/api/btt/select_floating_test.go +++ b/internal/api/btt/select_floating_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectFloating(t *testing.T) { diff --git a/internal/api/btt/select_language.go b/internal/api/btt/select_language.go index ceec786..4a7f4b6 100644 --- a/internal/api/btt/select_language.go +++ b/internal/api/btt/select_language.go @@ -3,8 +3,8 @@ package btt import ( "net/http" - "live2text/internal/api/json" - "live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/validation" ) type selectLanguageRequest struct { diff --git a/internal/api/btt/select_language_test.go b/internal/api/btt/select_language_test.go index e5aec15..5db120c 100644 --- a/internal/api/btt/select_language_test.go +++ b/internal/api/btt/select_language_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectLanguage(t *testing.T) { diff --git a/internal/api/btt/select_view_mode.go b/internal/api/btt/select_view_mode.go index aa27fd5..27fd222 100644 --- a/internal/api/btt/select_view_mode.go +++ b/internal/api/btt/select_view_mode.go @@ -4,9 +4,9 @@ package btt import ( "net/http" - "live2text/internal/api/json" - "live2text/internal/api/validation" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/services/btt" ) type selectViewModeRequest struct { diff --git a/internal/api/btt/select_view_mode_test.go b/internal/api/btt/select_view_mode_test.go index 325161b..4b65418 100644 --- a/internal/api/btt/select_view_mode_test.go +++ b/internal/api/btt/select_view_mode_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectViewMode(t *testing.T) { diff --git a/internal/api/btt/selected_clipboard_test.go b/internal/api/btt/selected_clipboard_test.go index b52ccd3..69a556c 100644 --- a/internal/api/btt/selected_clipboard_test.go +++ b/internal/api/btt/selected_clipboard_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectedFloating(t *testing.T) { diff --git a/internal/api/btt/selected_device_test.go b/internal/api/btt/selected_device_test.go index bbd3d23..1cc05e0 100644 --- a/internal/api/btt/selected_device_test.go +++ b/internal/api/btt/selected_device_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectedDevice(t *testing.T) { diff --git a/internal/api/btt/selected_floating_test.go b/internal/api/btt/selected_floating_test.go index 97a245b..51faebd 100644 --- a/internal/api/btt/selected_floating_test.go +++ b/internal/api/btt/selected_floating_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectedClipboard(t *testing.T) { diff --git a/internal/api/btt/selected_language_test.go b/internal/api/btt/selected_language_test.go index 0ed3356..81a4ea9 100644 --- a/internal/api/btt/selected_language_test.go +++ b/internal/api/btt/selected_language_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectedLanguage(t *testing.T) { diff --git a/internal/api/btt/selected_view_mode_test.go b/internal/api/btt/selected_view_mode_test.go index bb58237..a6cf490 100644 --- a/internal/api/btt/selected_view_mode_test.go +++ b/internal/api/btt/selected_view_mode_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectedViewMode(t *testing.T) { diff --git a/internal/api/btt/server.go b/internal/api/btt/server.go index ba3a1c4..8691956 100644 --- a/internal/api/btt/server.go +++ b/internal/api/btt/server.go @@ -3,7 +3,7 @@ package btt import ( "log/slog" - "live2text/internal/services" + "github.com/roboloop/live2text/internal/services" ) type Server struct { diff --git a/internal/api/btt/text_stream_test.go b/internal/api/btt/text_stream_test.go index 18921e8..aa35c3d 100644 --- a/internal/api/btt/text_stream_test.go +++ b/internal/api/btt/text_stream_test.go @@ -12,9 +12,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services" - "live2text/internal/services/btt" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/utils/logger" ) type unsupportedFlusherWriter struct { diff --git a/internal/api/btt/text_test.go b/internal/api/btt/text_test.go index a4039f2..b50ba2c 100644 --- a/internal/api/btt/text_test.go +++ b/internal/api/btt/text_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestText(t *testing.T) { diff --git a/internal/api/btt/toggle_listening.go b/internal/api/btt/toggle_listening.go index 5c2d894..1e05a93 100644 --- a/internal/api/btt/toggle_listening.go +++ b/internal/api/btt/toggle_listening.go @@ -4,8 +4,8 @@ import ( "errors" "net/http" - "live2text/internal/api/json" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/services/btt" ) func (s *Server) ToggleListening(w http.ResponseWriter, r *http.Request) { diff --git a/internal/api/btt/toggle_listening_test.go b/internal/api/btt/toggle_listening_test.go index d9e088b..6c8296e 100644 --- a/internal/api/btt/toggle_listening_test.go +++ b/internal/api/btt/toggle_listening_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/btt" ) func TestToggleListening(t *testing.T) { diff --git a/internal/api/core/devices.go b/internal/api/core/devices.go index 5d4cd1e..d5482a0 100644 --- a/internal/api/core/devices.go +++ b/internal/api/core/devices.go @@ -3,7 +3,7 @@ package core import ( "net/http" - "live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/json" ) type devicesResponse struct { diff --git a/internal/api/core/devices_test.go b/internal/api/core/devices_test.go index c927546..8994c9c 100644 --- a/internal/api/core/devices_test.go +++ b/internal/api/core/devices_test.go @@ -9,10 +9,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api/core" - "live2text/internal/services" - "live2text/internal/services/audio" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestDevices(t *testing.T) { diff --git a/internal/api/core/health.go b/internal/api/core/health.go index 8c162e0..3a04bfb 100644 --- a/internal/api/core/health.go +++ b/internal/api/core/health.go @@ -3,7 +3,7 @@ package core import ( "net/http" - "live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/json" ) type healthResponse string diff --git a/internal/api/core/health_test.go b/internal/api/core/health_test.go index dec8608..d8762d6 100644 --- a/internal/api/core/health_test.go +++ b/internal/api/core/health_test.go @@ -8,9 +8,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api/core" - "live2text/internal/services" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestHealth(t *testing.T) { diff --git a/internal/api/core/metrics_test.go b/internal/api/core/metrics_test.go index 4b553fe..48b0694 100644 --- a/internal/api/core/metrics_test.go +++ b/internal/api/core/metrics_test.go @@ -8,10 +8,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api/core" - "live2text/internal/services" - "live2text/internal/services/metrics" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestMetrics(t *testing.T) { diff --git a/internal/api/core/server.go b/internal/api/core/server.go index 07aaa87..2483813 100644 --- a/internal/api/core/server.go +++ b/internal/api/core/server.go @@ -3,7 +3,7 @@ package core import ( "log/slog" - "live2text/internal/services" + "github.com/roboloop/live2text/internal/services" ) type Server struct { diff --git a/internal/api/core/start.go b/internal/api/core/start.go index 0a9bacb..3f9a23e 100644 --- a/internal/api/core/start.go +++ b/internal/api/core/start.go @@ -6,10 +6,10 @@ import ( "net/http" "slices" - "live2text/internal/api/json" - "live2text/internal/api/validation" - "live2text/internal/services" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/recognition" ) type startRequest struct { diff --git a/internal/api/core/start_test.go b/internal/api/core/start_test.go index b5b9d32..6f85e74 100644 --- a/internal/api/core/start_test.go +++ b/internal/api/core/start_test.go @@ -10,11 +10,11 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api/core" - "live2text/internal/services" - "live2text/internal/services/audio" - "live2text/internal/services/recognition" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestStart(t *testing.T) { diff --git a/internal/api/core/stop.go b/internal/api/core/stop.go index 4702858..d35c601 100644 --- a/internal/api/core/stop.go +++ b/internal/api/core/stop.go @@ -4,8 +4,8 @@ import ( "errors" "net/http" - "live2text/internal/api/json" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/services/recognition" ) type stopRequest struct { diff --git a/internal/api/core/stop_test.go b/internal/api/core/stop_test.go index 71d836f..e686e96 100644 --- a/internal/api/core/stop_test.go +++ b/internal/api/core/stop_test.go @@ -10,10 +10,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api/core" - "live2text/internal/services" - "live2text/internal/services/recognition" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestStop(t *testing.T) { diff --git a/internal/api/core/text.go b/internal/api/core/text.go index 68d2d9c..a66250f 100644 --- a/internal/api/core/text.go +++ b/internal/api/core/text.go @@ -4,8 +4,8 @@ import ( "errors" "net/http" - "live2text/internal/api/json" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/api/json" + "github.com/roboloop/live2text/internal/services/recognition" ) type textRequest struct { diff --git a/internal/api/core/text_test.go b/internal/api/core/text_test.go index 3eb224f..0aada7d 100644 --- a/internal/api/core/text_test.go +++ b/internal/api/core/text_test.go @@ -10,10 +10,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api/core" - "live2text/internal/services" - "live2text/internal/services/recognition" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestText(t *testing.T) { diff --git a/internal/api/handler.go b/internal/api/handler.go index 4b5d61f..9e075dc 100644 --- a/internal/api/handler.go +++ b/internal/api/handler.go @@ -5,11 +5,11 @@ import ( "net/http" "time" - "live2text/internal/api/btt" - "live2text/internal/api/core" - "live2text/internal/api/middleware" - "live2text/internal/env" - "live2text/internal/services" + "github.com/roboloop/live2text/internal/api/btt" + "github.com/roboloop/live2text/internal/api/core" + "github.com/roboloop/live2text/internal/api/middleware" + "github.com/roboloop/live2text/internal/env" + "github.com/roboloop/live2text/internal/services" ) type Server struct { diff --git a/internal/api/handler_test.go b/internal/api/handler_test.go index 7631ed8..a43396a 100644 --- a/internal/api/handler_test.go +++ b/internal/api/handler_test.go @@ -7,9 +7,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/api" - "live2text/internal/services" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestHandler(t *testing.T) { diff --git a/internal/api/json/decode_test.go b/internal/api/json/decode_test.go index d4ffcc3..0dcb66d 100644 --- a/internal/api/json/decode_test.go +++ b/internal/api/json/decode_test.go @@ -10,7 +10,7 @@ import ( encodingjson "encoding/json" - "live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/json" ) type testStruct struct { diff --git a/internal/api/json/encode_test.go b/internal/api/json/encode_test.go index 2bb2eef..8f93904 100644 --- a/internal/api/json/encode_test.go +++ b/internal/api/json/encode_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/json" + "github.com/roboloop/live2text/internal/api/json" ) func TestEncode(t *testing.T) { diff --git a/internal/api/middleware/body_closer_test.go b/internal/api/middleware/body_closer_test.go index fdd2d9a..9f1b1a2 100644 --- a/internal/api/middleware/body_closer_test.go +++ b/internal/api/middleware/body_closer_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/middleware" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/middleware" + "github.com/roboloop/live2text/internal/utils/logger" ) type errorCloser struct{} diff --git a/internal/api/middleware/cors_test.go b/internal/api/middleware/cors_test.go index 9d41661..b7adf89 100644 --- a/internal/api/middleware/cors_test.go +++ b/internal/api/middleware/cors_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" - "live2text/internal/api/middleware" + "github.com/roboloop/live2text/internal/api/middleware" ) func TestCORSMiddleware(t *testing.T) { diff --git a/internal/api/middleware/error_test.go b/internal/api/middleware/error_test.go index ddc543f..d5212f7 100644 --- a/internal/api/middleware/error_test.go +++ b/internal/api/middleware/error_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/middleware" + "github.com/roboloop/live2text/internal/api/middleware" ) func TestErrorMiddleware(t *testing.T) { diff --git a/internal/api/middleware/logger_test.go b/internal/api/middleware/logger_test.go index 1e42ef8..858ae86 100644 --- a/internal/api/middleware/logger_test.go +++ b/internal/api/middleware/logger_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/middleware" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/api/middleware" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestLoggerMiddleware(t *testing.T) { diff --git a/internal/api/middleware/timeout_test.go b/internal/api/middleware/timeout_test.go index 8c071d6..e4d8b44 100644 --- a/internal/api/middleware/timeout_test.go +++ b/internal/api/middleware/timeout_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/middleware" + "github.com/roboloop/live2text/internal/api/middleware" ) func TestTimeoutMiddleware(t *testing.T) { diff --git a/internal/api/validation/language_code_test.go b/internal/api/validation/language_code_test.go index 7d28af5..5228fd4 100644 --- a/internal/api/validation/language_code_test.go +++ b/internal/api/validation/language_code_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/api/validation" ) func TestIsValidLanguageCode(t *testing.T) { diff --git a/internal/api/validation/validation_test.go b/internal/api/validation/validation_test.go index 11c70ad..2ec3cf5 100644 --- a/internal/api/validation/validation_test.go +++ b/internal/api/validation/validation_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/api/validation" + "github.com/roboloop/live2text/internal/api/validation" ) func TestError(t *testing.T) { diff --git a/internal/background/socket_manager_test.go b/internal/background/socket_manager_test.go index ed6ce72..e5aa28b 100644 --- a/internal/background/socket_manager_test.go +++ b/internal/background/socket_manager_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/background" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestSocketManager(t *testing.T) { diff --git a/internal/background/task_manager_test.go b/internal/background/task_manager_test.go index a06883d..0fbfc3a 100644 --- a/internal/background/task_manager_test.go +++ b/internal/background/task_manager_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/background" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/utils/logger" ) type dummyTask struct{} diff --git a/internal/config/install_test.go b/internal/config/install_test.go index 1d220ba..c357948 100644 --- a/internal/config/install_test.go +++ b/internal/config/install_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/config" + "github.com/roboloop/live2text/internal/config" ) func TestParseInstall(t *testing.T) { diff --git a/internal/config/serve.go b/internal/config/serve.go index f4f00eb..bc971e3 100644 --- a/internal/config/serve.go +++ b/internal/config/serve.go @@ -11,7 +11,7 @@ import ( "path/filepath" "strconv" - "live2text/internal/env" + "github.com/roboloop/live2text/internal/env" ) type Serve struct { diff --git a/internal/config/serve_test.go b/internal/config/serve_test.go index 43ca26c..27725e0 100644 --- a/internal/config/serve_test.go +++ b/internal/config/serve_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/config" + "github.com/roboloop/live2text/internal/config" ) func TestParseServe(t *testing.T) { diff --git a/internal/config/uninstall_test.go b/internal/config/uninstall_test.go index 030c019..19acc6c 100644 --- a/internal/config/uninstall_test.go +++ b/internal/config/uninstall_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/config" + "github.com/roboloop/live2text/internal/config" ) func TestParseUninstall(t *testing.T) { diff --git a/internal/env/default.go b/internal/env/default.go index 5d695c3..056a326 100644 --- a/internal/env/default.go +++ b/internal/env/default.go @@ -1,3 +1,10 @@ package env const AppName = "Live2Text" + +// Used during build time. +var ( + Version = "dev" + BuildTime = "unknown" + GoVersion = "unknown" +) diff --git a/internal/services/audio/audio.go b/internal/services/audio/audio.go index f8edaf5..90f0c78 100644 --- a/internal/services/audio/audio.go +++ b/internal/services/audio/audio.go @@ -3,8 +3,8 @@ package audio import ( "log/slog" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" ) type audio struct { diff --git a/internal/services/audio/audio_mock.go b/internal/services/audio/audio_mock.go index 9809a3f..fd4376f 100644 --- a/internal/services/audio/audio_mock.go +++ b/internal/services/audio/audio_mock.go @@ -3,7 +3,7 @@ package audio import ( - audiowrapper "live2text/internal/services/audio_wrapper" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/audio/common_test.go b/internal/services/audio/common_test.go index 66bc4bb..4f530e7 100644 --- a/internal/services/audio/common_test.go +++ b/internal/services/audio/common_test.go @@ -6,10 +6,10 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/utils/logger" ) func setupAudio( diff --git a/internal/services/audio/device_listener.go b/internal/services/audio/device_listener.go index a08475c..a8f712d 100644 --- a/internal/services/audio/device_listener.go +++ b/internal/services/audio/device_listener.go @@ -5,8 +5,8 @@ import ( "fmt" "log/slog" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" ) type deviceListener struct { diff --git a/internal/services/audio/device_listener_mock.go b/internal/services/audio/device_listener_mock.go index ac3b4ef..07352e0 100644 --- a/internal/services/audio/device_listener_mock.go +++ b/internal/services/audio/device_listener_mock.go @@ -4,7 +4,7 @@ package audio import ( "context" - audiowrapper "live2text/internal/services/audio_wrapper" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/audio/device_listener_test.go b/internal/services/audio/device_listener_test.go index 9a02a7c..4776a36 100644 --- a/internal/services/audio/device_listener_test.go +++ b/internal/services/audio/device_listener_test.go @@ -8,10 +8,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestDeviceListener(t *testing.T) { diff --git a/internal/services/audio/find_device.go b/internal/services/audio/find_device.go index ec6de62..47deda7 100644 --- a/internal/services/audio/find_device.go +++ b/internal/services/audio/find_device.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - audiowrapper "live2text/internal/services/audio_wrapper" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" ) func (a *audio) FindInputDevice(deviceName string) (*audiowrapper.DeviceInfo, error) { diff --git a/internal/services/audio/find_device_test.go b/internal/services/audio/find_device_test.go index 5489c8a..6b2ca97 100644 --- a/internal/services/audio/find_device_test.go +++ b/internal/services/audio/find_device_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" ) func TestFindInputDevice(t *testing.T) { diff --git a/internal/services/audio/interface.go b/internal/services/audio/interface.go index 686add9..adea1f5 100644 --- a/internal/services/audio/interface.go +++ b/internal/services/audio/interface.go @@ -3,7 +3,7 @@ package audio import ( "context" - audiowrapper "live2text/internal/services/audio_wrapper" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" ) //go:generate minimock -g -i Audio -s _mock.go -o . diff --git a/internal/services/audio/list_of_names_test.go b/internal/services/audio/list_of_names_test.go index 07d2e5b..5f109fb 100644 --- a/internal/services/audio/list_of_names_test.go +++ b/internal/services/audio/list_of_names_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" ) func TestListOfNames(t *testing.T) { diff --git a/internal/services/audio/listen_device_test.go b/internal/services/audio/listen_device_test.go index 85ef483..3d09be3 100644 --- a/internal/services/audio/listen_device_test.go +++ b/internal/services/audio/listen_device_test.go @@ -7,9 +7,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/metrics" ) func TestListenDevice(t *testing.T) { diff --git a/internal/services/btt/client/client.go b/internal/services/btt/client/client.go index caf8f74..1151398 100644 --- a/internal/services/btt/client/client.go +++ b/internal/services/btt/client/client.go @@ -8,8 +8,8 @@ import ( "strings" "sync" - "live2text/internal/services/btt/client/http" - "live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/client/http" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" ) const ( diff --git a/internal/services/btt/client/client_mock.go b/internal/services/btt/client/client_mock.go index 3c9ce59..e38c97a 100644 --- a/internal/services/btt/client/client_mock.go +++ b/internal/services/btt/client/client_mock.go @@ -4,7 +4,7 @@ package client import ( "context" - "live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/btt/client/client_test.go b/internal/services/btt/client/client_test.go index 3023a0d..eed29c5 100644 --- a/internal/services/btt/client/client_test.go +++ b/internal/services/btt/client/client_test.go @@ -8,9 +8,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/http" - "live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/http" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" ) func TestGetTriggers(t *testing.T) { diff --git a/internal/services/btt/client/http/send_test.go b/internal/services/btt/client/http/send_test.go index 67a2921..7d06fd4 100644 --- a/internal/services/btt/client/http/send_test.go +++ b/internal/services/btt/client/http/send_test.go @@ -12,8 +12,8 @@ import ( httpnet "net/http" - "live2text/internal/services/btt/client/http" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/btt/client/http" + "github.com/roboloop/live2text/internal/utils/logger" ) type roundTripperFunc func(request *httpnet.Request) (*httpnet.Response, error) diff --git a/internal/services/btt/client/interface.go b/internal/services/btt/client/interface.go index cb6f30e..68f4172 100644 --- a/internal/services/btt/client/interface.go +++ b/internal/services/btt/client/interface.go @@ -3,7 +3,7 @@ package client import ( "context" - "live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" ) //go:generate minimock -g -i Client -s _mock.go -o . diff --git a/internal/services/btt/clipboard.go b/internal/services/btt/clipboard.go index 2db98d6..550cce1 100644 --- a/internal/services/btt/clipboard.go +++ b/internal/services/btt/clipboard.go @@ -6,9 +6,9 @@ import ( "fmt" "log/slog" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" ) type Clipboard string diff --git a/internal/services/btt/clipboard_test.go b/internal/services/btt/clipboard_test.go index 2f068e3..5c0f2e5 100644 --- a/internal/services/btt/clipboard_test.go +++ b/internal/services/btt/clipboard_test.go @@ -8,9 +8,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestSelectClipboard(t *testing.T) { diff --git a/internal/services/btt/device.go b/internal/services/btt/device.go index a5ee512..b32d371 100644 --- a/internal/services/btt/device.go +++ b/internal/services/btt/device.go @@ -6,11 +6,11 @@ import ( "slices" "sync" - "live2text/internal/services/audio" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" - "live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/tmpl" ) var loadDevicesMutex sync.Mutex diff --git a/internal/services/btt/device_test.go b/internal/services/btt/device_test.go index 1af5f6e..4317cba 100644 --- a/internal/services/btt/device_test.go +++ b/internal/services/btt/device_test.go @@ -8,11 +8,11 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/audio" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/tmpl" ) func TestLoadDevices(t *testing.T) { diff --git a/internal/services/btt/floating.go b/internal/services/btt/floating.go index 69bdbc2..d3ba79e 100644 --- a/internal/services/btt/floating.go +++ b/internal/services/btt/floating.go @@ -6,11 +6,11 @@ import ( "log/slog" "time" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" - "live2text/internal/services/btt/tmpl" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/recognition" ) type Floating string diff --git a/internal/services/btt/floating_test.go b/internal/services/btt/floating_test.go index 5d19717..e247e00 100644 --- a/internal/services/btt/floating_test.go +++ b/internal/services/btt/floating_test.go @@ -9,12 +9,12 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/storage" - "live2text/internal/services/btt/tmpl" - "live2text/internal/services/recognition" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestSelectFloating(t *testing.T) { diff --git a/internal/services/btt/health.go b/internal/services/btt/health.go index eba651e..912c4cb 100644 --- a/internal/services/btt/health.go +++ b/internal/services/btt/health.go @@ -3,7 +3,7 @@ package btt import ( "context" - "live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client" ) type healthComponent struct { diff --git a/internal/services/btt/health_test.go b/internal/services/btt/health_test.go index 4de2a2f..afb91bb 100644 --- a/internal/services/btt/health_test.go +++ b/internal/services/btt/health_test.go @@ -6,8 +6,8 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" ) func TestHealth(t *testing.T) { diff --git a/internal/services/btt/installing.go b/internal/services/btt/installing.go index 7deeacc..e882995 100644 --- a/internal/services/btt/installing.go +++ b/internal/services/btt/installing.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/tmpl" - "live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/metrics" ) type installingComponent struct { diff --git a/internal/services/btt/installing_test.go b/internal/services/btt/installing_test.go index 5bde481..bf2a90d 100644 --- a/internal/services/btt/installing_test.go +++ b/internal/services/btt/installing_test.go @@ -7,10 +7,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/tmpl" ) func TestInstall(t *testing.T) { diff --git a/internal/services/btt/interface.go b/internal/services/btt/interface.go index 824283e..d6a580e 100644 --- a/internal/services/btt/interface.go +++ b/internal/services/btt/interface.go @@ -3,8 +3,8 @@ package btt import ( "context" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" ) //go:generate minimock -g -i Btt,HealthComponent,InstallingComponent,ListeningComponent,DeviceComponent,LanguageComponent,ViewModeComponent,FloatingComponent,ClipboardComponent,SettingsComponent -s _mock.go -o . diff --git a/internal/services/btt/language.go b/internal/services/btt/language.go index d7715d7..a8439cc 100644 --- a/internal/services/btt/language.go +++ b/internal/services/btt/language.go @@ -3,8 +3,8 @@ package btt import ( "context" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" ) type languageComponent struct { diff --git a/internal/services/btt/language_test.go b/internal/services/btt/language_test.go index 3366bb3..f2eb8bf 100644 --- a/internal/services/btt/language_test.go +++ b/internal/services/btt/language_test.go @@ -6,7 +6,7 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt" ) func TestSelectLanguage(t *testing.T) { diff --git a/internal/services/btt/listening.go b/internal/services/btt/listening.go index 8a7a6f5..9e4ca52 100644 --- a/internal/services/btt/listening.go +++ b/internal/services/btt/listening.go @@ -6,11 +6,11 @@ import ( "fmt" "log/slog" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" - "live2text/internal/services/btt/tmpl" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/recognition" ) var ( diff --git a/internal/services/btt/listening_test.go b/internal/services/btt/listening_test.go index 620aace..563d2ec 100644 --- a/internal/services/btt/listening_test.go +++ b/internal/services/btt/listening_test.go @@ -9,13 +9,13 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" - "live2text/internal/services/btt/tmpl" - "live2text/internal/services/recognition" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestToggleListening(t *testing.T) { diff --git a/internal/services/btt/settings.go b/internal/services/btt/settings.go index 12b77a1..b70de86 100644 --- a/internal/services/btt/settings.go +++ b/internal/services/btt/settings.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" ) type settingsComponent struct { diff --git a/internal/services/btt/settings_component_mock.go b/internal/services/btt/settings_component_mock.go index 4a44537..8d83b70 100644 --- a/internal/services/btt/settings_component_mock.go +++ b/internal/services/btt/settings_component_mock.go @@ -4,8 +4,8 @@ package btt import ( "context" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/btt/settings_test.go b/internal/services/btt/settings_test.go index a381a66..48e43a1 100644 --- a/internal/services/btt/settings_test.go +++ b/internal/services/btt/settings_test.go @@ -7,10 +7,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" ) func TestSelectSettings(t *testing.T) { diff --git a/internal/services/btt/storage/storage.go b/internal/services/btt/storage/storage.go index 1c1ee14..f8c7f0a 100644 --- a/internal/services/btt/storage/storage.go +++ b/internal/services/btt/storage/storage.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "live2text/internal/services/btt/client/http" + "github.com/roboloop/live2text/internal/services/btt/client/http" ) const ( diff --git a/internal/services/btt/storage/storage_test.go b/internal/services/btt/storage/storage_test.go index 432b944..d06ac88 100644 --- a/internal/services/btt/storage/storage_test.go +++ b/internal/services/btt/storage/storage_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt/client/http" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client/http" + "github.com/roboloop/live2text/internal/services/btt/storage" ) func TestGetValue(t *testing.T) { diff --git a/internal/services/btt/tmpl/renderer.go b/internal/services/btt/tmpl/renderer.go index f88a40b..cf1bcc3 100644 --- a/internal/services/btt/tmpl/renderer.go +++ b/internal/services/btt/tmpl/renderer.go @@ -27,7 +27,7 @@ type renderer struct { } func NewRenderer(appName string, appAddress, bttAddress string, debug bool) Renderer { - tmpl := template.New("templates") + tmpl := template.New("templates").Option("missingkey=error") tmpl = template.Must(tmpl.Parse(string(common))) tmpl = template.Must(tmpl.Parse(string(scripts))) tmpl = template.Must(tmpl.Parse(string(metrics))) diff --git a/internal/services/btt/tmpl/renderer_test.go b/internal/services/btt/tmpl/renderer_test.go index ccc4afe..6e5e1d0 100644 --- a/internal/services/btt/tmpl/renderer_test.go +++ b/internal/services/btt/tmpl/renderer_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/services/btt/tmpl" + "github.com/roboloop/live2text/internal/services/btt/tmpl" ) func TestPrintStatus(t *testing.T) { diff --git a/internal/services/btt/view_mode.go b/internal/services/btt/view_mode.go index be56161..0392981 100644 --- a/internal/services/btt/view_mode.go +++ b/internal/services/btt/view_mode.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "live2text/internal/services/btt/client" - "live2text/internal/services/btt/client/trigger" - "live2text/internal/services/btt/storage" + "github.com/roboloop/live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt/client/trigger" + "github.com/roboloop/live2text/internal/services/btt/storage" ) type viewModeComponent struct { diff --git a/internal/services/btt/view_mode_test.go b/internal/services/btt/view_mode_test.go index d09109e..96c3c20 100644 --- a/internal/services/btt/view_mode_test.go +++ b/internal/services/btt/view_mode_test.go @@ -7,8 +7,8 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/btt" - "live2text/internal/services/btt/client" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/btt/client" ) func TestSelectViewMode(t *testing.T) { diff --git a/internal/services/burner/burn_test.go b/internal/services/burner/burn_test.go index a55c45b..dfb00d8 100644 --- a/internal/services/burner/burn_test.go +++ b/internal/services/burner/burn_test.go @@ -10,9 +10,9 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/services/burner" - "live2text/internal/services/metrics" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/utils/logger" ) type failingWriter struct { diff --git a/internal/services/burner/burner.go b/internal/services/burner/burner.go index fc8bfe1..6fd48e3 100644 --- a/internal/services/burner/burner.go +++ b/internal/services/burner/burner.go @@ -3,7 +3,7 @@ package burner import ( "log/slog" - "live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/metrics" ) type burner struct { diff --git a/internal/services/interface.go b/internal/services/interface.go index 2afebf4..4c7a551 100644 --- a/internal/services/interface.go +++ b/internal/services/interface.go @@ -1,12 +1,12 @@ package services import ( - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/btt" - "live2text/internal/services/burner" - "live2text/internal/services/metrics" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/recognition" ) //go:generate minimock -g -i Services -s _mock.go -o . diff --git a/internal/services/metrics/metrics_test.go b/internal/services/metrics/metrics_test.go index 6f07538..12f67e9 100644 --- a/internal/services/metrics/metrics_test.go +++ b/internal/services/metrics/metrics_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" - "live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/metrics" ) func TestMetrics(t *testing.T) { diff --git a/internal/services/recognition/common_test.go b/internal/services/recognition/common_test.go index 097b0e2..cbb89fb 100644 --- a/internal/services/recognition/common_test.go +++ b/internal/services/recognition/common_test.go @@ -6,11 +6,11 @@ import ( "github.com/gojuno/minimock/v3" - "live2text/internal/background" - "live2text/internal/services/audio" - "live2text/internal/services/recognition" - "live2text/internal/services/recognition/components" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/utils/logger" ) func setupRecognition( diff --git a/internal/services/recognition/components/burner.go b/internal/services/recognition/components/burner.go index 85b949a..f538d49 100644 --- a/internal/services/recognition/components/burner.go +++ b/internal/services/recognition/components/burner.go @@ -8,7 +8,7 @@ import ( "path" "time" - "live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/burner" ) type BurnerParameters struct { diff --git a/internal/services/recognition/components/burner_test.go b/internal/services/recognition/components/burner_test.go index 730f212..4166a4b 100644 --- a/internal/services/recognition/components/burner_test.go +++ b/internal/services/recognition/components/burner_test.go @@ -10,9 +10,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/burner" - "live2text/internal/services/recognition/components" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestBurner(t *testing.T) { diff --git a/internal/services/recognition/components/output.go b/internal/services/recognition/components/output.go index 76f2e81..17e6222 100644 --- a/internal/services/recognition/components/output.go +++ b/internal/services/recognition/components/output.go @@ -9,7 +9,7 @@ import ( "path" "time" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/services/recognition/text" ) //go:generate minimock -g -i OutputComponent -s _mock.go -o . diff --git a/internal/services/recognition/components/output_component_mock.go b/internal/services/recognition/components/output_component_mock.go index 31f746e..cc64e89 100644 --- a/internal/services/recognition/components/output_component_mock.go +++ b/internal/services/recognition/components/output_component_mock.go @@ -4,7 +4,7 @@ package components import ( "context" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/services/recognition/text" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/recognition/components/output_test.go b/internal/services/recognition/components/output_test.go index 3f540e2..534f150 100644 --- a/internal/services/recognition/components/output_test.go +++ b/internal/services/recognition/components/output_test.go @@ -9,9 +9,9 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/recognition/components" - "live2text/internal/services/recognition/text" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestPrint(t *testing.T) { diff --git a/internal/services/recognition/components/recognize.go b/internal/services/recognition/components/recognize.go index cc4f2d3..814a00d 100644 --- a/internal/services/recognition/components/recognize.go +++ b/internal/services/recognition/components/recognize.go @@ -15,9 +15,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "live2text/internal/services/metrics" - speechwrapper "live2text/internal/services/speech_wrapper" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/metrics" + speechwrapper "github.com/roboloop/live2text/internal/services/speech_wrapper" + "github.com/roboloop/live2text/internal/utils/logger" ) type RecognizeParameters struct { diff --git a/internal/services/recognition/components/recognize_test.go b/internal/services/recognition/components/recognize_test.go index b2fa383..7e64b12 100644 --- a/internal/services/recognition/components/recognize_test.go +++ b/internal/services/recognition/components/recognize_test.go @@ -15,10 +15,10 @@ import ( "google.golang.org/grpc/status" "google.golang.org/protobuf/types/known/durationpb" - "live2text/internal/services/metrics" - "live2text/internal/services/recognition/components" - speechwrapper "live2text/internal/services/speech_wrapper" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/recognition/components" + speechwrapper "github.com/roboloop/live2text/internal/services/speech_wrapper" + "github.com/roboloop/live2text/internal/utils/logger" ) // TODO: more tests diff --git a/internal/services/recognition/components/socket.go b/internal/services/recognition/components/socket.go index 9a4176a..9800ae5 100644 --- a/internal/services/recognition/components/socket.go +++ b/internal/services/recognition/components/socket.go @@ -7,8 +7,8 @@ import ( "net" "strings" - "live2text/internal/background" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/services/recognition/text" ) //go:generate minimock -g -i SocketComponent -s _mock.go -o . diff --git a/internal/services/recognition/components/socket_component_mock.go b/internal/services/recognition/components/socket_component_mock.go index 05db6b4..7d1efd7 100644 --- a/internal/services/recognition/components/socket_component_mock.go +++ b/internal/services/recognition/components/socket_component_mock.go @@ -4,7 +4,7 @@ package components import ( "context" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/services/recognition/text" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/recognition/components/socket_test.go b/internal/services/recognition/components/socket_test.go index 284fe1f..ca4a011 100644 --- a/internal/services/recognition/components/socket_test.go +++ b/internal/services/recognition/components/socket_test.go @@ -10,10 +10,10 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/background" - "live2text/internal/services/recognition/components" - "live2text/internal/services/recognition/text" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestHandleConn(t *testing.T) { diff --git a/internal/services/recognition/has_test.go b/internal/services/recognition/has_test.go index 9422df7..9ba3ced 100644 --- a/internal/services/recognition/has_test.go +++ b/internal/services/recognition/has_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/background" + "github.com/roboloop/live2text/internal/background" ) func TestHas(t *testing.T) { diff --git a/internal/services/recognition/recognition.go b/internal/services/recognition/recognition.go index 0e95086..a4c3202 100644 --- a/internal/services/recognition/recognition.go +++ b/internal/services/recognition/recognition.go @@ -3,7 +3,7 @@ package recognition import ( "log/slog" - "live2text/internal/background" + "github.com/roboloop/live2text/internal/background" ) type recognition struct { diff --git a/internal/services/recognition/start_test.go b/internal/services/recognition/start_test.go index 12f0450..b6cdfb7 100644 --- a/internal/services/recognition/start_test.go +++ b/internal/services/recognition/start_test.go @@ -9,10 +9,10 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/background" - "live2text/internal/services/audio" - "live2text/internal/services/recognition" - "live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/recognition/components" ) func TestStart(t *testing.T) { diff --git a/internal/services/recognition/stop_test.go b/internal/services/recognition/stop_test.go index a24e450..f44f6e1 100644 --- a/internal/services/recognition/stop_test.go +++ b/internal/services/recognition/stop_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/background" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/services/recognition" ) func TestStop(t *testing.T) { diff --git a/internal/services/recognition/task.go b/internal/services/recognition/task.go index b7e7ee5..8f37169 100644 --- a/internal/services/recognition/task.go +++ b/internal/services/recognition/task.go @@ -8,10 +8,10 @@ import ( "golang.org/x/sync/errgroup" - "live2text/internal/services/audio" - "live2text/internal/services/recognition/components" - "live2text/internal/services/recognition/text" - "live2text/internal/utils" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/utils" ) type Task struct { diff --git a/internal/services/recognition/task_factory.go b/internal/services/recognition/task_factory.go index e949e17..0203c10 100644 --- a/internal/services/recognition/task_factory.go +++ b/internal/services/recognition/task_factory.go @@ -7,8 +7,8 @@ import ( "os" "path/filepath" - "live2text/internal/services/audio" - "live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/services/audio" + "github.com/roboloop/live2text/internal/services/recognition/components" ) type taskFactory struct { diff --git a/internal/services/recognition/task_factory_test.go b/internal/services/recognition/task_factory_test.go index 6bd03a5..fd9cef4 100644 --- a/internal/services/recognition/task_factory_test.go +++ b/internal/services/recognition/task_factory_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/recognition" ) func TestNewTask(t *testing.T) { diff --git a/internal/services/recognition/task_test.go b/internal/services/recognition/task_test.go index 8d2ff68..c4885a1 100644 --- a/internal/services/recognition/task_test.go +++ b/internal/services/recognition/task_test.go @@ -10,12 +10,12 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/recognition" - "live2text/internal/services/recognition/components" - "live2text/internal/services/recognition/text" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/recognition/components" + "github.com/roboloop/live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestTask(t *testing.T) { diff --git a/internal/services/recognition/text/console_test.go b/internal/services/recognition/text/console_test.go index 91a5363..85ee6df 100644 --- a/internal/services/recognition/text/console_test.go +++ b/internal/services/recognition/text/console_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/services/recognition/text" ) func TestConsoleWriter(t *testing.T) { diff --git a/internal/services/recognition/text/file_test.go b/internal/services/recognition/text/file_test.go index 759489b..cb2562a 100644 --- a/internal/services/recognition/text/file_test.go +++ b/internal/services/recognition/text/file_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/services/recognition/text" ) func TestFileWriter(t *testing.T) { diff --git a/internal/services/recognition/text/subtitle_test.go b/internal/services/recognition/text/subtitle_test.go index 5b2aa5f..d7c3770 100644 --- a/internal/services/recognition/text/subtitle_test.go +++ b/internal/services/recognition/text/subtitle_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/services/recognition/text" + "github.com/roboloop/live2text/internal/services/recognition/text" ) func TestAddNonFinalText(t *testing.T) { diff --git a/internal/services/recognition/text_test.go b/internal/services/recognition/text_test.go index d521c09..fe8c78e 100644 --- a/internal/services/recognition/text_test.go +++ b/internal/services/recognition/text_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/background" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/background" + "github.com/roboloop/live2text/internal/services/recognition" ) func TestText(t *testing.T) { diff --git a/internal/services/services.go b/internal/services/services.go index 03ba725..2252fb7 100644 --- a/internal/services/services.go +++ b/internal/services/services.go @@ -1,12 +1,12 @@ package services import ( - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/btt" - "live2text/internal/services/burner" - "live2text/internal/services/metrics" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/recognition" ) type services struct { diff --git a/internal/services/services_mock.go b/internal/services/services_mock.go index 8bee330..6da2727 100644 --- a/internal/services/services_mock.go +++ b/internal/services/services_mock.go @@ -3,12 +3,12 @@ package services import ( - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/btt" - "live2text/internal/services/burner" - "live2text/internal/services/metrics" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/recognition" "sync" mm_atomic "sync/atomic" mm_time "time" diff --git a/internal/services/services_test.go b/internal/services/services_test.go index 4276628..f739721 100644 --- a/internal/services/services_test.go +++ b/internal/services/services_test.go @@ -6,13 +6,13 @@ import ( "github.com/gojuno/minimock/v3" "github.com/stretchr/testify/require" - "live2text/internal/services" - "live2text/internal/services/audio" - audiowrapper "live2text/internal/services/audio_wrapper" - "live2text/internal/services/btt" - "live2text/internal/services/burner" - "live2text/internal/services/metrics" - "live2text/internal/services/recognition" + "github.com/roboloop/live2text/internal/services" + "github.com/roboloop/live2text/internal/services/audio" + audiowrapper "github.com/roboloop/live2text/internal/services/audio_wrapper" + "github.com/roboloop/live2text/internal/services/btt" + "github.com/roboloop/live2text/internal/services/burner" + "github.com/roboloop/live2text/internal/services/metrics" + "github.com/roboloop/live2text/internal/services/recognition" ) func TestServices(t *testing.T) { diff --git a/internal/utils/broadcast_test.go b/internal/utils/broadcast_test.go index fcaa67a..03cee6d 100644 --- a/internal/utils/broadcast_test.go +++ b/internal/utils/broadcast_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/utils" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/utils" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestBroadcaster(t *testing.T) { diff --git a/internal/utils/logger/capture_logger_test.go b/internal/utils/logger/capture_logger_test.go index c01265f..452ef97 100644 --- a/internal/utils/logger/capture_logger_test.go +++ b/internal/utils/logger/capture_logger_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestCaptureLogger(t *testing.T) { diff --git a/internal/utils/logger/nil_logger_test.go b/internal/utils/logger/nil_logger_test.go index 2b7c9e7..3792e14 100644 --- a/internal/utils/logger/nil_logger_test.go +++ b/internal/utils/logger/nil_logger_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestNilLogger(t *testing.T) { diff --git a/internal/utils/logger/resolve_test.go b/internal/utils/logger/resolve_test.go index 9d882d1..371ef99 100644 --- a/internal/utils/logger/resolve_test.go +++ b/internal/utils/logger/resolve_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "live2text/internal/utils/logger" + "github.com/roboloop/live2text/internal/utils/logger" ) func TestResolveLevel(t *testing.T) {