Skip to content

Commit

Permalink
add local whisper test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethey committed Aug 31, 2024
1 parent 737560a commit b6d6259
Show file tree
Hide file tree
Showing 2,483 changed files with 823,216 additions and 0 deletions.
30 changes: 30 additions & 0 deletions whisper_tiny_flutter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 1,30 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/doc/api/
.dart_tool/
build/

33 changes: 33 additions & 0 deletions whisper_tiny_flutter/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 1,33 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "9f3be7dfd9e2a50b652b90696c484430f42f3705"
channel: "master"

project_type: plugin

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 9f3be7dfd9e2a50b652b90696c484430f42f3705
base_revision: 9f3be7dfd9e2a50b652b90696c484430f42f3705
- platform: android
create_revision: 9f3be7dfd9e2a50b652b90696c484430f42f3705
base_revision: 9f3be7dfd9e2a50b652b90696c484430f42f3705
- platform: ios
create_revision: 9f3be7dfd9e2a50b652b90696c484430f42f3705
base_revision: 9f3be7dfd9e2a50b652b90696c484430f42f3705

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
3 changes: 3 additions & 0 deletions whisper_tiny_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 1,3 @@
## 0.0.1

* TODO: Describe initial release.
1 change: 1 addition & 0 deletions whisper_tiny_flutter/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 1 @@
TODO: Add your license here.
15 changes: 15 additions & 0 deletions whisper_tiny_flutter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 1,15 @@
# whisper_tiny_flutter

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter
[plug-in package](https://flutter.dev/developing-packages/),
a specialized package that includes platform-specific implementation code for
Android and/or iOS.

For help getting started with Flutter development, view the
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

7 changes: 7 additions & 0 deletions whisper_tiny_flutter/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- android/**

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
10 changes: 10 additions & 0 deletions whisper_tiny_flutter/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 1,10 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
/src/main/assets/
.cxx
82 changes: 82 additions & 0 deletions whisper_tiny_flutter/android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 1,82 @@
group = "com.example.whisper_tiny_flutter"
version = "1.0-SNAPSHOT"

buildscript {
ext.kotlin_version = "1.7.10"
repositories {
google()
mavenCentral()
}

dependencies {
classpath("com.android.tools.build:gradle:7.3.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

apply plugin: "com.android.library"
apply plugin: "kotlin-android"

android {
if (project.android.hasProperty("namespace")) {
namespace = "com.example.whisper_tiny_flutter"
}

compileSdk = 34

externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = "1.8"
}

sourceSets {
main.java.srcDirs = "src/main/kotlin"
test.java.srcDirs = "src/test/kotlin"
}

defaultConfig {
minSdk = 21
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}

dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito:mockito-core:5.0.0")
}

testOptions {
unitTests.all {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
}
}
dependencies {
implementation 'org.tensorflow:tensorflow-lite:2.11.0'
implementation 'org.tensorflow:tensorflow-lite-support:0.4.3'
}

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit b6d6259

Please sign in to comment.