Giter Club home page Giter Club logo

vht-tflmicrospeech's Introduction

ML Example

Micro speech for TensorFlow Lite

Derived from Micro speech example for TensorFlow Lite for Microcontrollers.

Prerequisites

Micro speech for FVP (Fixed Virtual Platform) for Corstone SSE-300 with Ethos-U55

Project directory: ./Platform_FVP_Corstone_SSE-300_Ethos-U55/

Example has the following targets:

  • Example: FVP with Python interface (VSI) with audio test data provided through user Python script
    • Runs on the special Corstone SSE-300 Ethos-U55 FVP with Python interface providing Virtual Streaming Interface (VSI).
      It is required to install the model executable and binaries in order to run this example.
      Expected installation directory on Windows: C:\Program Files\Arm\VHT\models\Win64_VC2017
      If installed in a different directory then this needs to be reflected:
      • in uVision project (Options for Target - Debug - Settings for Models Armv8-M Debugger) when running with MDK or
      • in script run_example.cmd when running standalone
    • Audio test data is provided by Python script ./VSI/audio/python/arm_vsi0.py from WAVE file test.wav which contains keywords 'Yes' and 'No' alternating three times.
    • Build example with MDK using uVision project microspeech.uvprojx target Example or CMSIS-Build using microspeech.Example.cprj project.
    • Run example with MDK or standalone with script run_example.cmd.
    • When running the example the audio data is processed and any detected keywords are output to the terminal:
      Heard yes (152) @1100ms
      Heard no (141) @5500ms
      Heard yes (147) @9100ms
      Heard no (148) @13600ms
      Heard yes (147) @17100ms
      Heard no (148) @21600ms
      
  • Example Test: internal test for Example
  • Audio Provider Mock: public FVP with audio test data embedded in code
    • Runs on the public Corstone SSE-300 Ethos-U55 FVP.
    • Audio test data is embedded in the test code and contains keywords 'Yes' and 'No' alternating indefinitely.
    • Build example with MDK using uVision project microspeech.uvprojx target Audio Provider Mock or CMSIS-Build using microspeech.Audio_Provider_Mock.cprj project.
    • Run example with MDK or standalone.
    • When running the example the audio data is processed and any detected keywords are output to the terminal:
      Heard silence (149) @400ms
      Heard yes (158) @1200ms
      Heard no (143) @5600ms
      Heard yes (149) @9100ms
      Heard no (142) @13600ms
      Heard yes (149) @17100ms
      Heard no (142) @21600ms
      
  • Audio Provider Mock Test: internal test for Audio Provider Mock

Micro speech for MIMXRT1064-EVK board

Project directory: ./Platform_MIMXRT1064-EVK/

This example shows how to run a voice recognition model that can recognize 2 keywords, "yes" and "no", from boards built-in microphone. Recognized keywords are written to the terminal.

  • Build example with MDK using uVision project microspeech.uvprojx or CMSIS-Build using microspeech.MIMXRT1064-EVK.cprj project.
  • Program and run the example with MDK or use Drag-and-drop programming through the DAP-Link drive.
  • Open the DAP-Link Virtual COM port in a terminal (baudrate = 115200) and monitor recognized keywords.

vht-tflmicrospeech's People

Contributors

fabklein avatar reinhardkeil avatar robertrostohar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.