Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify transcription by user-specified regular expression #29

Closed
Kaljurand opened this issue Apr 9, 2015 · 2 comments
Closed

Modify transcription by user-specified regular expression #29

Kaljurand opened this issue Apr 9, 2015 · 2 comments

Comments

@Kaljurand
Copy link
Owner

Original issue 25 created by Kaljurand on 2012-08-25T20:30:03.000Z:

In the Apps list context menu, add "Assign regexp" and "Remove regexp". "Assign regexp" would allow the user to specify a regular expression that modifies the transcription(s) that the server returns.

Use case: TuneIn Radio. TuneIn Radio supports voice search (in car mode, with device language set to English) but expects the returned transcription to start with "listen to". So, Kõnele cannot be used with TuneIn. The solution would be to automatically modify the transcription e.g. by:

s/^/listen to /

or

s/^mängi /listen to /

Allowing the user to say "tallinn põleb" (i.e. simply the search query) or "mängi Arvo Pärt" (search query with an Estonian prefix).

Use case: removing brackets e.g. from arithmetical expressions: s/[)(]//g

Some modifications would require actually a chain of regexp transformations instead of just a single regexp.

@Kaljurand
Copy link
Owner Author

This was partly implemented in https://github.com/Kaljurand/K6nele/releases/tag/v1.4.06

@Kaljurand
Copy link
Owner Author

Fixed in a more general way by cefba7c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant