diff options
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | pandora/asha.proto | 87 | ||||
-rw-r--r-- | python/Android.bp | 5 |
3 files changed, 0 insertions, 93 deletions
@@ -69,7 +69,6 @@ java_library { filegroup { name: "pandora-protos", srcs: [ - "pandora/asha.proto", "pandora/host.proto", "pandora/security.proto", ], diff --git a/pandora/asha.proto b/pandora/asha.proto deleted file mode 100644 index 6b2ab64..0000000 --- a/pandora/asha.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -option java_outer_classname = "AshaProto"; - -package pandora.asha; - -import "google/protobuf/empty.proto"; -import "pandora/host.proto"; - -// Service to trigger Audio Streaming for Hearing Aid (ASHA) procedures. -// ASHA uses connection-oriented L2CAP channels (CoC) and GATT. -service Asha { - // Register ASHA Service. - rpc Register(RegisterRequest) returns (google.protobuf.Empty); - // Capture Audio. - rpc CaptureAudio(CaptureAudioRequest) returns (stream CaptureAudioResponse); - // Start a suspended stream. - rpc Start(StartRequest) returns (StartResponse); - // Playback audio - rpc PlaybackAudio(stream PlaybackAudioRequest) returns (PlaybackAudioResponse); - // Stop a started stream. - rpc Stop(stream StopRequest) returns (StopResponse); -} - -// Request of the `Register` method. -message RegisterRequest { - uint32 capability = 1; // left or right device, monaural or binaural device. - repeated uint32 hisyncid = 2; // id identifying two hearing aids as one pair. -} - -// Request of the `CaptureAudio` method. -message CaptureAudioRequest { - // Low Energy connection. - Connection connection = 1; -} - -// Response of the `CaptureAudio` method. -message CaptureAudioResponse { - // Audio data received on peripheral side. - // `data` is decoded by G722 decoder. - bytes data = 1; -} - -// Request of the `Start` method. -message StartRequest { - // Low Energy connection. - Connection connection = 1; -} - -// Response of the `Start` method. -message StartResponse {} - -// Request of the `PlaybackAudio` method. -message PlaybackAudioRequest { - // Low Energy connection. - Connection connection = 1; - // Audio data to playback. - // `data` should be interleaved stereo frames with 16-bit signed little-endian - // linear PCM samples at 44100Hz sample rate - bytes data = 2; -} - -// Response of the `PlaybackAudio` method. -message PlaybackAudioResponse {} - -// Request of the `Stop` method. -message StopRequest { - // Low Energy connection. - Connection connection = 1; -} - -// Response of the `Stop` method. -message StopResponse {} diff --git a/python/Android.bp b/python/Android.bp index 6fdca66..00d99d4 100644 --- a/python/Android.bp +++ b/python/Android.bp @@ -38,10 +38,6 @@ genrule { "pandora/py.typed", "pandora/__init__.py", "pandora/_utils.py", - "pandora/asha_grpc.py", - "pandora/asha_grpc_aio.py", - "pandora/asha_pb2.py", - "pandora/asha_pb2.pyi", "pandora/host_grpc.py", "pandora/host_grpc_aio.py", "pandora/host_pb2.py", @@ -67,7 +63,6 @@ filegroup { name: "pandora-python-stubs", srcs: [ ":pandora-python-gen-src{pandora/py.typed}", - ":pandora-python-gen-src{pandora/asha_pb2.pyi}", ":pandora-python-gen-src{pandora/host_pb2.pyi}", ":pandora-python-gen-src{pandora/security_pb2.pyi}", ], |