Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doorperson: add seed audio and write / read adaptor #6939

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ use_repo(
"com_github_golang_protobuf",
"com_github_gorilla_websocket",
"com_github_itchyny_gojq",
"com_github_mewkiz_flac",
"com_github_oapi_codegen_oapi_codegen_v2",
"com_github_oapi_codegen_runtime",
"com_github_sergi_go_diff",
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
github.com/golang/protobuf v1.5.4
github.com/gorilla/websocket v1.5.3
github.com/itchyny/gojq v0.12.16
github.com/mewkiz/flac v1.0.12
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1
github.com/oapi-codegen/runtime v1.1.1
github.com/sergi/go-diff v1.3.1
Expand Down Expand Up @@ -41,6 +42,7 @@ require (
github.com/google/go-dap v0.11.0 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/icza/bitio v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/yaml v0.3.1 // indirect
github.com/itchyny/timefmt-go v0.1.6 // indirect
Expand All @@ -51,6 +53,7 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-shellwords v1.0.12 // indirect
github.com/mewkiz/pkg v0.0.0-20230226050401-4010bf0fec14 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/perimeterx/marshmallow v1.1.5 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
Expand Down
25 changes: 25 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 15 additions & 6 deletions go/cmd/doorperson/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,33 @@ load("//go:rules.bzl", "go_binary", "go_library")

go_library(
name = "doorperson_lib",
srcs = ["main.go"],
srcs = [
"main.go",
"seed.go",
],
data = [
"alice.flac",
],
importpath = "github.com/zemn-me/monorepo/go/cmd/doorperson",
visibility = ["//visibility:private"],
deps = [
"//go/ioutil",
"//go/openai",
"@com_github_gorilla_websocket//:websocket",
"@com_github_mewkiz_flac//:flac",
"@com_github_mewkiz_flac//frame",
"@com_github_twilio_twilio_go//twiml",
"@org_golang_x_sync//errgroup",
],
)

bazel_lint(
name = "bazel_lint",
srcs = ["BUILD.bazel"],
)

go_binary(
name = "doorperson",
embed = [":doorperson_lib"],
visibility = ["//visibility:public"],
)

bazel_lint(
name = "bazel_lint",
srcs = ["BUILD.bazel"],
)
Binary file added go/cmd/doorperson/alice.flac
Binary file not shown.
Loading