From 93b26fa362ca5968494e149c8cf209b0b7e0507e Mon Sep 17 00:00:00 2001 From: Aleksandr Smechov <35517862+aleksandr-smechov@users.noreply.github.com> Date: Wed, 2 Aug 2023 03:12:43 -0400 Subject: [PATCH] Updated license info in all modules (#183) Co-authored-by: Aleks --- wordcab_transcribe/__init__.py | 20 ++++++++++++------- wordcab_transcribe/config.py | 20 ++++++++++++------- wordcab_transcribe/dependencies.py | 20 ++++++++++++------- wordcab_transcribe/logging.py | 20 ++++++++++++------- wordcab_transcribe/main.py | 20 ++++++++++++------- wordcab_transcribe/models.py | 20 ++++++++++++------- wordcab_transcribe/router/__init__.py | 20 ++++++++++++------- wordcab_transcribe/router/authentication.py | 20 ++++++++++++------- wordcab_transcribe/router/v1/__init__.py | 20 ++++++++++++------- .../router/v1/audio_file_endpoint.py | 20 ++++++++++++------- .../router/v1/audio_url_endpoint.py | 20 ++++++++++++------- .../router/v1/cortex_endpoint.py | 20 ++++++++++++------- wordcab_transcribe/router/v1/endpoints.py | 20 ++++++++++++------- .../router/v1/live_endpoints.py | 20 ++++++++++++------- .../router/v1/youtube_endpoint.py | 20 ++++++++++++------- wordcab_transcribe/services/__init__.py | 20 ++++++++++++------- wordcab_transcribe/services/align_service.py | 20 ++++++++++++------- wordcab_transcribe/services/asr_service.py | 20 ++++++++++++------- .../services/diarize_service.py | 20 ++++++++++++------- wordcab_transcribe/services/gpu_service.py | 20 ++++++++++++------- .../services/post_processing_service.py | 20 ++++++++++++------- .../services/transcribe_service.py | 20 ++++++++++++------- wordcab_transcribe/services/vad_service.py | 20 ++++++++++++------- wordcab_transcribe/utils.py | 20 ++++++++++++------- 24 files changed, 312 insertions(+), 168 deletions(-) diff --git a/wordcab_transcribe/__init__.py b/wordcab_transcribe/__init__.py index 29e8840..c247b7e 100644 --- a/wordcab_transcribe/__init__.py +++ b/wordcab_transcribe/__init__.py @@ -1,14 +1,20 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Main module of the Wordcab ASR API.""" diff --git a/wordcab_transcribe/config.py b/wordcab_transcribe/config.py index c9aecf2..b108f0b 100644 --- a/wordcab_transcribe/config.py +++ b/wordcab_transcribe/config.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Configuration module of the Wordcab Transcribe.""" from os import getenv diff --git a/wordcab_transcribe/dependencies.py b/wordcab_transcribe/dependencies.py index a01613b..0998fdc 100644 --- a/wordcab_transcribe/dependencies.py +++ b/wordcab_transcribe/dependencies.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Dependencies for the API.""" import asyncio diff --git a/wordcab_transcribe/logging.py b/wordcab_transcribe/logging.py index d73a21b..22269c6 100644 --- a/wordcab_transcribe/logging.py +++ b/wordcab_transcribe/logging.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Logging module to add a logging middleware to the Wordcab Transcribe API.""" diff --git a/wordcab_transcribe/main.py b/wordcab_transcribe/main.py index 2d9abc9..97f0447 100644 --- a/wordcab_transcribe/main.py +++ b/wordcab_transcribe/main.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Main API module of the Wordcab Transcribe.""" diff --git a/wordcab_transcribe/models.py b/wordcab_transcribe/models.py index 6fd0fe3..90f9656 100644 --- a/wordcab_transcribe/models.py +++ b/wordcab_transcribe/models.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Models module of the Wordcab Transcribe.""" from typing import List, Optional diff --git a/wordcab_transcribe/router/__init__.py b/wordcab_transcribe/router/__init__.py index c421782..b334020 100644 --- a/wordcab_transcribe/router/__init__.py +++ b/wordcab_transcribe/router/__init__.py @@ -1,14 +1,20 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Routing module for the API part of the Wordcab Transcribe.""" diff --git a/wordcab_transcribe/router/authentication.py b/wordcab_transcribe/router/authentication.py index a9417eb..ff1f333 100644 --- a/wordcab_transcribe/router/authentication.py +++ b/wordcab_transcribe/router/authentication.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Authentication dependency for production.""" from datetime import datetime, timedelta diff --git a/wordcab_transcribe/router/v1/__init__.py b/wordcab_transcribe/router/v1/__init__.py index ed2ff7a..a764275 100644 --- a/wordcab_transcribe/router/v1/__init__.py +++ b/wordcab_transcribe/router/v1/__init__.py @@ -1,14 +1,20 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """V1 endpoints for the Wordcab Transcribe API.""" diff --git a/wordcab_transcribe/router/v1/audio_file_endpoint.py b/wordcab_transcribe/router/v1/audio_file_endpoint.py index 8f6d9d6..515791e 100644 --- a/wordcab_transcribe/router/v1/audio_file_endpoint.py +++ b/wordcab_transcribe/router/v1/audio_file_endpoint.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Audio file endpoint for the Wordcab Transcribe API.""" import asyncio diff --git a/wordcab_transcribe/router/v1/audio_url_endpoint.py b/wordcab_transcribe/router/v1/audio_url_endpoint.py index 250536b..d67c090 100644 --- a/wordcab_transcribe/router/v1/audio_url_endpoint.py +++ b/wordcab_transcribe/router/v1/audio_url_endpoint.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Audio url endpoint for the Wordcab Transcribe API.""" import asyncio diff --git a/wordcab_transcribe/router/v1/cortex_endpoint.py b/wordcab_transcribe/router/v1/cortex_endpoint.py index 3470c36..d63aafa 100644 --- a/wordcab_transcribe/router/v1/cortex_endpoint.py +++ b/wordcab_transcribe/router/v1/cortex_endpoint.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Cortex endpoint module of the Wordcab Transcribe API.""" from datetime import datetime diff --git a/wordcab_transcribe/router/v1/endpoints.py b/wordcab_transcribe/router/v1/endpoints.py index d2c5df4..23863c7 100644 --- a/wordcab_transcribe/router/v1/endpoints.py +++ b/wordcab_transcribe/router/v1/endpoints.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Routing the requested endpoints to the API.""" from fastapi import APIRouter diff --git a/wordcab_transcribe/router/v1/live_endpoints.py b/wordcab_transcribe/router/v1/live_endpoints.py index 6b88ab0..c3ecc0d 100644 --- a/wordcab_transcribe/router/v1/live_endpoints.py +++ b/wordcab_transcribe/router/v1/live_endpoints.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Live endpoints for the Wordcab Transcribe API.""" from fastapi import APIRouter diff --git a/wordcab_transcribe/router/v1/youtube_endpoint.py b/wordcab_transcribe/router/v1/youtube_endpoint.py index c077882..c35b731 100644 --- a/wordcab_transcribe/router/v1/youtube_endpoint.py +++ b/wordcab_transcribe/router/v1/youtube_endpoint.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """YouTube endpoint for the Wordcab Transcribe API.""" import asyncio diff --git a/wordcab_transcribe/services/__init__.py b/wordcab_transcribe/services/__init__.py index 0a9f921..3266a05 100644 --- a/wordcab_transcribe/services/__init__.py +++ b/wordcab_transcribe/services/__init__.py @@ -1,14 +1,20 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Services modules for the full ASR pipeline.""" diff --git a/wordcab_transcribe/services/align_service.py b/wordcab_transcribe/services/align_service.py index 5ae4839..55996f3 100644 --- a/wordcab_transcribe/services/align_service.py +++ b/wordcab_transcribe/services/align_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Alignment Service for transcribed audio files.""" from collections import OrderedDict diff --git a/wordcab_transcribe/services/asr_service.py b/wordcab_transcribe/services/asr_service.py index b990bf6..995726a 100644 --- a/wordcab_transcribe/services/asr_service.py +++ b/wordcab_transcribe/services/asr_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """ASR Service module that handle all AI interactions.""" import asyncio diff --git a/wordcab_transcribe/services/diarize_service.py b/wordcab_transcribe/services/diarize_service.py index f97e933..f5fcf69 100644 --- a/wordcab_transcribe/services/diarize_service.py +++ b/wordcab_transcribe/services/diarize_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Diarization Service for audio files.""" import math diff --git a/wordcab_transcribe/services/gpu_service.py b/wordcab_transcribe/services/gpu_service.py index 78423ae..d58b596 100644 --- a/wordcab_transcribe/services/gpu_service.py +++ b/wordcab_transcribe/services/gpu_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """GPU service class to handle gpu availability for models.""" import asyncio diff --git a/wordcab_transcribe/services/post_processing_service.py b/wordcab_transcribe/services/post_processing_service.py index 41f4b19..653ddf0 100644 --- a/wordcab_transcribe/services/post_processing_service.py +++ b/wordcab_transcribe/services/post_processing_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Post-Processing Service for audio files.""" from typing import Any, Dict, List diff --git a/wordcab_transcribe/services/transcribe_service.py b/wordcab_transcribe/services/transcribe_service.py index e1d9518..7bbc5c1 100644 --- a/wordcab_transcribe/services/transcribe_service.py +++ b/wordcab_transcribe/services/transcribe_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Transcribe Service for audio files.""" import itertools diff --git a/wordcab_transcribe/services/vad_service.py b/wordcab_transcribe/services/vad_service.py index 9540800..657d7da 100644 --- a/wordcab_transcribe/services/vad_service.py +++ b/wordcab_transcribe/services/vad_service.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Voice Activation Detection (VAD) Service for audio files.""" from typing import List, Optional, Tuple, Union diff --git a/wordcab_transcribe/utils.py b/wordcab_transcribe/utils.py index 693cc58..c0633d5 100644 --- a/wordcab_transcribe/utils.py +++ b/wordcab_transcribe/utils.py @@ -1,16 +1,22 @@ # Copyright 2023 The Wordcab Team. All rights reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the Wordcab Transcribe License 0.1 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://github.com/Wordcab/wordcab-transcribe/blob/main/LICENSE # -# 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. +# Except as expressly provided otherwise herein, and to the fullest +# extent permitted by law, Licensor provides the Software (and each +# Contributor provides its Contributions) AS IS, and Licensor +# disclaims all warranties or guarantees of any kind, express or +# implied, whether arising under any law or from any usage in trade, +# or otherwise including but not limited to the implied warranties +# of merchantability, non-infringement, quiet enjoyment, fitness +# for a particular purpose, or otherwise. +# +# See the License for the specific language governing permissions +# and limitations under the License. """Utils module of the Wordcab Transcribe.""" import asyncio import math