Speech to text encoding

Open
#4 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start at FeatureAudioADPCM.getAudio(sample) and trace the audio listener usage in the Android application. Check the returned sample representation and the Google streaming speech API requirements; done means the PCM status and supported short[] to byte[] handling are clearly documented for this use case.

Written by the indexing model from the issue text.

Description

Hi, it is me again.

Hi, there, I am working in NeuronicWorks, Toronto, as a mobile developer.

Now I am using your development kit for your blue tooth (chip) device.

private final Feature.FeatureListener mAudioListener = (f, sample) -> {
short[] audioSample = FeatureAudioADPCM.getAudio(sample);
};

In above method, the "audioSample" is Linear PCM encoded data (also decompressed), is it right?

As I need to use Google stream speech API, so how do I transform this short[] format to byte[]?

Best regards,

Boqian

Dominant language
Kotlin
Stars
132
Forks
73
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from STMicroelectronics/STBLESensor_Android

All issues in STMicroelectronics/STBLESensor_Android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.