summaryrefslogtreecommitdiff
path: root/apps/talk.h
diff options
context:
space:
mode:
authorStéphane Doyon <s.doyon@videotron.ca>2008-07-15 14:55:31 +0000
committerStéphane Doyon <s.doyon@videotron.ca>2008-07-15 14:55:31 +0000
commit3eb76d053db78be1f0b50f70134aa5a3b46ba77d (patch)
tree84caa006d3d69d97a665de17710c3c335bb3afd2 /apps/talk.h
parentd3cb2aca444ab7006dba9379ee0fff1195a7baff (diff)
downloadrockbox-3eb76d053db78be1f0b50f70134aa5a3b46ba77d.tar.gz
rockbox-3eb76d053db78be1f0b50f70134aa5a3b46ba77d.zip
talk.c helper functions to voice a filename, in a more generic way
than from tree.c Voice a file or dir's thumbnail from path components, or spell last path component. Ability to prefix the thumbnail or spelling with some talk ids. This is the talk_file patch from FS#6323, just refactored a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18048 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/talk.h b/apps/talk.h
index e73164486d..b0a26c3053 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -84,7 +84,17 @@ int talk_get_bufsize(void); /* get the loaded voice file size */
84void talk_buffer_steal(void); /* claim the mp3 buffer e.g. for play/record */ 84void talk_buffer_steal(void); /* claim the mp3 buffer e.g. for play/record */
85bool is_voice_queued(void); /* Are there more voice clips to be spoken? */ 85bool is_voice_queued(void); /* Are there more voice clips to be spoken? */
86int talk_id(int32_t id, bool enqueue); /* play a voice ID from voicefont */ 86int talk_id(int32_t id, bool enqueue); /* play a voice ID from voicefont */
87int talk_file(const char* filename, bool enqueue); /* play a thumbnail from file */ 87/* play a thumbnail from file */
88int talk_file(const char *root, const char *dir, const char *file,
89 const char *ext, long *prefix_ids, bool enqueue);
90/* play file's thumbnail or spell name */
91int talk_file_or_spell(const char *dirname, const char* filename,
92 long *prefix_ids, bool enqueue);
93/* play dir's thumbnail or spell name */
94int talk_dir_or_spell(const char* filename,
95 long *prefix_ids, bool enqueue);
96/* play thumbnails for each components of full path, or spell */
97int talk_fullpath(const char* path, bool enqueue);
88int talk_number(long n, bool enqueue); /* say a number */ 98int talk_number(long n, bool enqueue); /* say a number */
89int talk_value(long n, int unit, bool enqueue); /* say a numeric value */ 99int talk_value(long n, int unit, bool enqueue); /* say a numeric value */
90int talk_value_decimal(long n, int unit, int decimals, bool enqueue); 100int talk_value_decimal(long n, int unit, int decimals, bool enqueue);