Go Back   xda-developers > Windows Mobile Development and Hacking > Development and Hacking General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st August 2008, 03:33 AM
degritxda degritxda is offline
Junior Member
 
Join Date: Jul 2008
Posts: 26
Default Vasquez Talk To Me 0.1.4 - Speaking clock

Tested on HTC P4350 Herald with stock WM6 unbranded.
The purpose of this is to have the handheld tell me what time it is in the way I choose.

I first made a mortscript to do that (http://forum.xda-developers.com/show...&postcount=659), but I wanted it to have the dignity of a stand-alone app (I have nothing against mortscripts though, they're brilliant). Since my experience with developing for windows, and even more so developing for windows mobile, == NULL, I looked (once again) for ways to get all set up and learn very quickly.
After being reminded for the nth time (it's an every-six-months or so process, recursive) that no, you don't infact learn c++ quickly, even less some newish language you've never seen before, I stumbled onto PPL, what I would think of as a script interpreter with a fairly easy to use IDE.

The result of my few hours of fighting with PPL is attached below for the joy of all children and elderly people.



Installation:
Place the contents of the zip in a folder wherever you like on the device, then link buttons or shortcuts at leisure to vasquez.exe.

Settings:
The file setup.exe modifies the few settings for the app.
Actor - which sounds set to use (only default available for now);
Format - hh mm only for now, to be joined by "o'clock", "and a half", "quarter to" and so on;
AM/PM - use am/pm or not where appropriate;
12/24 - use a 12 or 24 hours cycle.
Note that using 24 hours the AM/PM setting is ignored.

Bottom Line:
PPL, while easy to use and learn, has its downs:
1) an app that would have taken a few kbs requires instead more than 2mb, because of having to pack the interpreter together with the code (only to be expected really);
2) it takes a while to run the app (each exe being ~1.2mb) and it feels oddly wrong having to wait a few seconds for such a settings menu to appear (you'll see what I mean if you try).

It is my intention to develop this further, although I'd much prefer to rewrite it "properly" using Cwhateversappropriate or .NET or dunnowhat.
But first I'll have to find someone to tutor me through the setting up stage because I always stop before even starting. (Anyone ? Hih, hih. )



Thanks for bearing with my rambling.
Attached Files
File Type: zip vasquez_ppc_014.zip (1.17 MB, 3784 views)
Reply With Quote
Sponsored Links

  #2  
Old 1st August 2008, 04:38 AM
oldsap's Avatar
oldsap oldsap is offline
Senior Member
 
Join Date: Apr 2006
Posts: 909
Default



nice little app.

comments:
- maybe you could recode your checkbox' so that when AM/PM is selected, the 24Hr checkbox will automatically be unchecked, and vice versa.
- the wav file's volume are a bit low
__________________
http://oldsap.blogspot.com

SpeakerPhone Auto ON - Automatically turn on your speakerphone
OS Profiler - Volume Profile Scheduler.
DontSleep Wifi - will automatically turn on your wifi while preventing your device from going into sleep mode.
OS Logger - Log your SMS on your Calendar
i780 Flashing Guide
CNitrogen - Titanium Plugin for Nitrogen Music Player
SMSer - send multiple sms to multiple contacts
Reply With Quote

  #3  
Old 1st August 2008, 04:57 AM
zenkinz's Avatar
zenkinz zenkinz is offline
Senior Member
 
Join Date: Apr 2005
Posts: 1,295
Default

using a lang interpretator or managed framework would always have its cost and overheads.

I always prefer to build utility using native Win32 instead of .NET for the same reason, especially if I am interested just to get the job done and need to keep it lean and mean...
Reply With Quote

  #4  
Old 1st August 2008, 02:11 PM
degritxda degritxda is offline
Junior Member
 
Join Date: Jul 2008
Posts: 26
Default

Quote:
Originally Posted by zenkinz View Post
using a lang interpretator or managed framework would always have its cost and overheads.

I always prefer to build utility using native Win32 instead of .NET for the same reason, especially if I am interested just to get the job done and need to keep it lean and mean...
What's the deal with the various Visual Thisandthat ? Do they work like this (with all the understandable differences) or are they as lean and mean as any notepad-made C++ ?
Reply With Quote

  #5  
Old 17th June 2009, 01:39 AM
Solaris_irc Solaris_irc is offline
Member
 
Join Date: Feb 2007
Location: Ticul
Posts: 75
Default

great app i use it avery day. Is there any plans to update it? could you plz add the feature to use a diferent wav file for sayin 1hr and 1min, cause I made spanish sounds for your app but when it says One One AM, in spanish should be Una Uno AM, but there is only a file for the 1.
Reply With Quote

  #6  
Old 17th June 2009, 02:50 AM
galaxys's Avatar
galaxys galaxys is offline
Senior Member
 
Join Date: May 2007
Location: Las Vegas
Posts: 2,801
Default

very cool clock...did not know this even excisted. Nice work!
__________________
HTC Nexus One<--HTC HD<--HTC Hermes<--Samsung A920<--Sanyo VM4500<--LG TP5250<--Motorola StarTac<--
Reply With Quote

  #7  
Old 17th June 2009, 06:43 PM
Jasand's Avatar
Jasand Jasand is offline
Senior Member
 
Join Date: Nov 2008
Location: Worcestershire
Posts: 275
Default

thanks for this,

however the sounds are very quiet so when i get home tonight ill amplify the sounds and see what they sound like.

if they sound good ill uplaod the amplified sounds for you if you dont mind?
Reply With Quote

  #8  
Old 17th June 2009, 09:56 PM
Jasand's Avatar
Jasand Jasand is offline
Senior Member
 
Join Date: Nov 2008
Location: Worcestershire
Posts: 275
Default

http://www.mediafire.com/?sharekey=a...f98b593799bd67

I have done some playing and here are three level of sounds:

quiet is just normal if you want to use original sounds
medium is amplified by 400%
Loud is amplified by 800%

anymore and distortion was really noticeable. Just extract the files and replace default sounds with the sounds from the folder you wish.
Reply With Quote

  #9  
Old 3rd July 2009, 08:37 AM
Crypt!c's Avatar
Crypt!c Crypt!c is offline
Member
 
Join Date: Jun 2008
Posts: 78
Default

hi, how to i link the vasquez.exe to buttons? any recommended programs?
__________________
..::Gsm Elfin::..
Onyx Ultimate 4.1.6
Radio :03.34.90
IPL : 3.10.0002
SPL : 3.10.cmonex
Reply With Quote

  #10  
Old 6th July 2009, 12:41 AM
wapvirus's Avatar
wapvirus wapvirus is offline
Senior Member
 
Join Date: Jan 2008
Location: London
Posts: 1,316
Default

Any chance of wma support as these files can be made much smaller, Bug found i get a crackling when time is played i have tested with different sound samples and it's still present still great and i look forward to watching this app grow

I am running 6.5 on omap 200mhz
__________________
HTC Touch Diamond P3700
Radio xxxx
Custom: Gen.Y D2X: WM6.1 + SENSE 2.5

Solitair Graphics Update
My Titanium Neo Shadow Build 23004
BootLoader Tool (Great for devices with Broken Buttons)
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.